Sign in Join
FPDoc Onlineexperiment

TButtonControl.ClicksDisabled property

Member of TButtonControlprotectedIn unit StdCtrls

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

Declaration

pascal
property ClicksDisabled: Boolean read FClicksDisabled write FClicksDisabled;

Description

ClicksDisabled is a Boolean property which controls whether the Click method is called when a the Checked property is changed in the control. It is a protected property accessible in the TButtonControl and TButtonActionLink classes.

The TCustomCheckBox descendant uses ClicksDisabled in its DoClickOnChange method; when set to False, the Click method is called to signal both the OnChange and OnClick handlers for the control. When set to True, only the OnChange event handler is signalled.

ClicksDisabled is also used to prevent calling Click when the Checked property in a linked button action is updated. This prevents duplicate OnChange / OnClick calls when Checked is updated in the control.

See also

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