IButton.CancelButton

Syntax

CancelButton: Boolean;

Description

The CancelButton property determines whether the OnClick event is handled on pressing the ESC key.

Comments

If the property is set to True, pressing the ESC key while the focus is within the parent form, has the same effect as clicking the button. It is reasonable to use this property for Undo buttons in different dialog forms.

See also:

IButton