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

# TButtonControl.ClicksDisabled

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

## Declaration

Source position: stdctrls.pp line 1192

`protected property TButtonControl.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

TCustomCheckBox.DoClickOnChange |  | Implements the Click behavior for the control.
TCustomCheckBox.Click |  | Performs actions needed when the control is clicked.
TButtonControl.DoOnChange |  | Signals the OnEditingDone and OnChange event handlers (when assigned).
TButtonActionLink.SetChecked |  | Sets the value in the Checked property for the linked button.
TButtonActionLink.IsCheckedLinked |  | Is the action's Checked property linked to the client?