TCheckBox.Checked property
Indicates the checked state for the control as a Boolean value.
Declaration
property Checked:;Description
Checked is a
Boolean property which indicates if the
control is displayed using its "checked" or "unchecked" state. The default
value for the property is
False and indicates the control uses its
unchecked state.
Checked is a published property in TCheckBox and uses the overridden read and write access specifiers from TCustomCheckBox (GetChecked and SetChecked). The property value is read from and written to the State property using one of the TCheckBoxState enumeration values. For example:
| State value | Checked value |
cbUnchecked
|
False |
cbChecked
|
True |
cbGrayed
|
The value in Checked is not significant. |
Changing the value in Checked causes State to be updated with the corresponding TCheckBoxState value, which in turn, calls either the Click method or the OnChange event handler.
See State and ClicksDisabled for more information.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
