[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 1341

protected procedure TCustomCheckBox.DoClickOnChange; virtual;

Description

DoClickOnChange is a procedure used to signal event handler(s) when the LC_CHANGED message is handled for the control. DoClickOnChange calls the Changed method to dispatch the control message. DoClickOnChange uses the value in ClicksDisabled 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 from the DoChange method after the value in State has been updated. It is also called when a new value is assigned to the Checked property.

See also

TCustomCheckBox.State

  

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

TButtonControl.ClicksDisabled

  

Disables clicking on the button, without showing the button in a disabled state.

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 changes to properties in the control.

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 done.