RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomApplicationEvents.CancelDispatch Method

Prevents other TCustomApplicationEvents objects from receiving the current event.

Pascal
procedure CancelDispatch;
C++
__fastcall CancelDispatch();

Call CancelDispatch from one of the TCustomApplicationEvents descendant's event handlers when it handles an event. CancelDispatch prevents other TCustomApplicationEvents descendant's from receiving the event after the current event handler exits. 

CancelDispatch has no effect unless it is called from one of the component's event handlers. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!