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

# TCustomAction.Grayed

True if the action (and it client control) are in the grayed or indeterminate state.

## Declaration

Source position: actnlist.pas line 203

`public property TCustomAction.Grayed : Boolean read FGrayed write FGrayed;`

## Description

Grayed is a Boolean property used to prevent execution of an action when its client control is in the grayed or indeterminate state. It applies primarily to check box and button controls.

Grayed is updated when the State property in an associated TCheckBox control is changed. It is also used to determine if the Checked property for a button control is linked to an assigned action; they are considered to be linked when Grayed is set to True.

Grayed is used when the value in the Checked property is updated.

## Version info

Added in LCL version 3.0.

## See also

TCustomAction.Checked |  | Whether the check box control associated with the action is Checked (default False).
TButtonControl.Checked |  | Indicates the checked state for the control as a Boolean value.
TCheckBox.Checked |  | Indicates the checked state for the control as a Boolean value.
TButtonActionLink.IsCheckedLinked |  | Is the action's Checked property linked to the client?
TActionLink.IsCheckedLinked |  | Is the action's Checked property linked to the client?