Description

An ACheckBox control displays a checkmark when selected or is clear when unselected. Use this control for a Yes/No or True/False option. ACheckBox controls can be used in groups to allow users multiple choices. The value of an ACheckBox control can be set in programs using the Value property and can be set to unchecked, checked, or grayed. Grayed can be used when the control is not appropriate.

Text for the ACheckBox can be set by using the Caption property. Use the Alignment property to set the text on the left or right side of the box. The Appearance of the ACheckBox, caption text, and colors can also be set programmatically.

Properties

 

Alignment

Font3D

Name

Visible

Appearance

ForeColor

Object

WhatsThisHelpID

BackColor

Height

TabStop

WhatsThisHelpText

Caption

HelpContextID

Tag

Width

Description

hWnd

ToolTipText

 

Enabled

Image

Top

 

Font

Left

Value

 

Methods

 

Move

SetFocus

ShowWhatsThis

Refresh

ShowHelpContext

ZOrder

Events

 

OnChange

OnHelpContext

OnKeyUp

OnMouseMove

OnClick

OnKeyDown

OnLostFocus

OnMouseUp

OnGotFocus

OnKeyPress

OnMouseDown

OnWhatsThisHelp

Constants

 

enumACheckBoxAlignment

enumACheckBoxValue

Comments

The ACheckBox control offers one or more selections from a list of choices, whereas the ARadioButton allows only one selection from a list of choices.

See Also

AComboBox, AListBox, ARadioButton