Sign in Join
FPDoc Onlineexperiment

TCustomCheckBox.DoClickOnChange procedure

Member of TCustomCheckBoxprotectedIn unit StdCtrls

Implements the Click behavior for the control.

Declaration

pascal
procedure 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.