Check Boxes

From RAD Studio
Jump to: navigation, search

Go Up to Buttons and Similar Controls


A check box is a toggle that lets the user select an on or off state. When the choice is turned on, the check box is checked. Otherwise, the check box is blank. When you create check boxes using Vcl.StdCtrls.TCheckBox.

  • Set Checked to True to make the box appear checked by default. For FMX.StdCtrls.TCheckBox, set IsChecked to True.
  • Set AllowGrayed to True to give the check box three possible states: checked, unchecked, and grayed.
  • The State property indicates whether the check box is checked (cbChecked), unchecked (cbUnchecked), or grayed (cbGrayed).

Note: Check box controls display one of two binary states. The indeterminate state is used when other settings make it impossible to determine the current value for the check box.

See Also

Code Examples