Vcl.StdCtrls.TCustomButton.Cancel

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Cancel: Boolean read FCancel write FCancel default False;

C++

__property bool Cancel = {read=FCancel, write=FCancel, default=0};

Properties

Type Visibility Source Unit Parent
property public
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TCustomButton

Description

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.

See Also