[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'StdCtrls' (#lcl)

TCustomCheckBox.DoClickOnChange

Implements the Click behavior for the control.

Declaration

Source position: stdctrls.pp line 1340

protected procedure TCustomCheckBox.DoClickOnChange; virtual;

Description

DoClickOnChange is a procedure used to signal event handler(s) when the LM_CHANGED message is handled for the control. DoClickOnChange calls the Changed method to dispatch the control message.

DoClickOnChange uses the value from the inherited ClicksDisabled property to determine the event handler(s) signalled in the method. When ClicksDisabled is False, the inherited Click method is called. When set to True, the DoOnChange method is called to signal the OnEditingDone and OnChange event handlers. This emulates the OnClick behavior in the Delphi VCL.

DoClickOnChange is called when a new value is assigned to the Checked property. DoClickOnChange is also called from the DoChange method after the value in State has been retrieved for the control. Please note that DoChange is not used in the current LCL implementation.

See also

TCustomCheckBox.State

  

The check, unchecked, or grayed state for the control.

TButtonControl.ClicksDisabled

  

Disables calling the Click method without changing the Enabled state for the control.

TButtonControl.Click

  

Performs actions needed when a click message is handled for the control.

TButtonControl.Checked

  

Indicates the checked state for the control.

TButtonControl.DoOnChange

  

Signals the OnEditingDone and OnChange event handlers (when assigned).

TButtonControl.OnChange

  

Event handler for signalled when the button control is clicked.

TControl.Changed

  

Performs actions needed when the value for the control has been changed.

TControl.EditingDone

  

Signals the OnEditingDone event handler.

TControl.OnEditingDone

  

Event handler signalled when editing is completed for the control.

TControl.OnClick

  

Notification handler for mouse clicks.


Version 3.2 Generated 2024-02-25 Home