[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Performs actions needed when a click message is handled for the control.
Source position: stdctrls.pp line 1189
protected procedure TButtonControl.Click; override; |
Click is an overridden method in TButtonControl. Click calls the DoOnChange method which signals the OnEditingDone and OnChange event handlers (when assigned).
Click calls the inherited method prior to exit. The inherited method (in TControl) signals either the OnClick event handler or the OnExecute handler in the Action. OnClick is used when Action has not been assigned, or when OnClick contains a handler routine that differs from the one assigned to the OnExecute handler in the Action.
Click can be called in two different usage scenarios. If standard click events have been enabled in ControlStyle, it is called when the left mouse button is released. It can also be called from a private LM_CLICKED message handler in the control when standard click events are not enabled in ControlStyle. This avoids duplicate click notifications when csClickEvents is enabled in ControlStyle and Click is handled when the WMLButtonUp method is executed.
|
Signals the OnEditingDone and OnChange event handlers (when assigned). |
|
|
Event handler signalled when the button control is clicked. |
|
|
Signals OnClick and/or executes the ActionLink when the control has been clicked. |
|
|
The Action associated with the control. |
|
|
Event handler signalled when editing is completed for the control. |
|
|
Message handler for left mouse button up events. |
|
|
Contains style flags which control the features or behaviors enabled for the control. |
|
|
Contains state flags which indicate whether the control has been clicked, data is being read, or the control is being re-drawn, etc. |
|
|
||
Version 4.0 | Generated 2025-05-03 | Home |