RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCommonDialogAction.OnCancel Event

Occurs after the user exits a modal dialog by selecting “Cancel” or when a modeless dialog fails to come up.

Pascal
property OnCancel: TNotifyEvent;
C++
__property TNotifyEvent OnCancel;

Write an OnCancel event handler to respond when the user cancels from the associated dialog. When the action fires, it executes its associated dialog. OnCancel occurs when the dialog component's Execute method returns false. Thus, if the dialog is modal, OnCancel occurs when the user closes the dialog by clicking the Cancel button. If the dialog is modeless, OnCancel occurs if the dialog fails to appear. 

 

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