Previous Topic

Next Topic

Inhoudsopgave

Book Index

TCheckBox Control

TCheckBox

Description

Represents a check box that can be activated (checked) or disabled (empty).

Remarks

A TCheckBox control presents an option for the user. The user can check the box to select the option, or uncheck it to deselect the option.

TCheckBox Properties

Property Property AllowGrayed: Boolean (R/W)

Determines whether check box can be in a "grayed" state. If AllowGrayed is set to true, the check box has three possible states: checked, unchecked, and grayed. If AllowGrayed is set to false, the check box has only two possible states: checked and unchecked.

Property Property Checked: Boolean (R/W)

Specifies whether the check box is checked. Use Checked to determine whether the check box is in the checked state.

Note: If the AllowGrayed property is true, you may find it more useful to use the State property.

Property Property State: Enumerated (cbUnchecked, cbChecked, cbGrayed) (R/W)

Indicates whether the check box is selected, deselected, or grayed.