TCnButton.Cancel Property

Determines whether the button's OnClick event handler executes when the Escape (ESC) key is pressed.

Namespace: CNClrLib.Control.Button
published
 property Cancel: Boolean read FCancel write SetCancel default False;

Property Value

Type: Boolean

 

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.