TCustomButton.Click procedure
Handles a button click event for the control.
Declaration
procedure Click; overrideDescription
Click is an overridden method used to handle a button click event
for the control.
Click uses the value in ModalResult to determine if the modal
result for the button control is posted to the parent form. When ModalResult
contains a value other than mrNone, it is stored in the
ModalResult property in the parent form (when assigned).
Click calls the inherited method to signal other event handlers or an
Action used for the control. OnChange is signalled
first. OnClick is signalled if an Action is not in use, or the
Action does not have an OnExecute event handler.
Click is called from ExecuteDefaultAction when the control is both
Active and the Default button on the parent form. It is
called from ExecuteCancelAction when the control is the
Cancel button on the parent form. It is called from
DialogChar when the accelerator key in Shortcut is
handled for the control.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
