Vcl.StdCtrls.TButton.Cancel
Delphi
property Cancel: Boolean read FCancel write FCancel default 0;
C++
__property Cancel = {default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Vcl.StdCtrls.pas Vcl.StdCtrls.hpp |
Vcl.StdCtrls | TButton |
Description
Determines whether the button's OnClick event handler executes when the Escape key is pressed.
Vcl.StdCtrls.TButton.Cancel inherits from Vcl.StdCtrls.TCustomButton.Cancel. All content below this line refers to Vcl.StdCtrls.TCustomButton.Cancel.
Determines whether the button's OnClick event handler executes when the Escape key is pressed.
If Cancel is true, the button's OnClick event handler executes when the user presses Esc. Although an application can have more than one Cancel button, the form calls the OnClick event handler only for the first visible button in the tab order.