Vcl.StdActns.TCommonDialogAction.OnCancel

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnCancel: TNotifyEvent read FOnCancel write FOnCancel;

C++

__property System::Classes::TNotifyEvent OnCancel = {read=FOnCancel, write=FOnCancel};

Properties

Type Visibility Source Unit Parent
event public
Vcl.StdActns.pas
Vcl.StdActns.hpp
Vcl.StdActns TCommonDialogAction

Description

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

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.

See Also