[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Performs actions needed when the control is clicked.
Source position: stdctrls.pp line 1339
protected procedure TCustomCheckBox.Click; override; |
Click is an overridden method in TCustomCheckBox. It performs actions needed when the value in the Checked or State property is changed for the control, whether by mouse click or setting the value in program code.
TCustomCheckBox re-implements the method from the TButtonControl ancestor to ignore the mouse click event. It has an empty implementation, and does not call the inherited method.
In TCustomCheckBox, the click action may be handled in two different ways. The action may be performed (in TControl) when the left mouse button is released and standard click events are enabled in ControlStyle. The click action may be performed in DoClickOnChange (by calling the inherited Click method) when the value in State is changed and ClicksDisabled is False.
This avoids a duplicate click notification when csClickEvents is enabled in ControlStyle and Click is handled when the WMLButtonUp method is executed, or when the click is triggered by an associated Action.
|
The check, unchecked, or grayed state for the control. |
|
|
Implements the Click behavior for the control. |
|
|
Indicates the checked state for the control. |
|
|
Disables calling the Click method without changing the Enabled state for the control. |
|
|
Signals OnClick and/or executes the ActionLink when the control has been clicked. |
|
|
The Action associated with 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. |
|
|
Contains style flags which control the features or behaviors enabled for the control. |
|
|
Message handler for left mouse button up events. |
Version 3.2 | Generated 2024-02-25 | Home |