[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Handles a button click event for the control.
Source position: stdctrls.pp line 1247
public procedure TCustomButton.Click; override; |
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.
|
Signals OnClick and/or executes the ActionLink when the control has been clicked. |
Version 4.0 | Generated 2025-05-03 | Home |