MSM-Workstation
Components

Check Box

The Check Box component offers a general purpose selector with two possible values: checked or not, typically representing "on" when checked, or "off" when not checked.

Hint: The Check action logic for this component is an excellent location for code that causes other components to be active or grayed out.

Hint: When the intent is to allow a user to enter one of a limited set of values, there is a number of components that could be appropriate to facilitate this choice. If the list of possible values is "only two possible values", a Check Box might be preferrable. When the list is up to five, the Radio Button is probably the best approach. Up to a couple of dozen, the List Box or Drop Down List is the best way, and if the list is even longer, the Long List Box is to be preferred.

The events that are recognized for components of the type Checkbox are: Check, Create, Destroy, Enter, Exit, change, deselect, gotFocus, help, lostFocus and select.

The default property for a checkbox is Value.

The property list for a checkbox is:

Property Name
(MSM-Workstation)
Property Name
(MWAPI)
Default ValueValue Range
ActiveACTIVE Boolean value
BackColorBCOLOR Color
CancelCANCEL Boolean value
ChangedCHANGED Boolean value
Container  Free text
DataField  Field
DisplayOnlyCANCHANGE Boolean value
ForeColorFCOLOR Color
MessageZMESSAGE Free text
Name  Name of component (current window)
NextControlNEXTG Name of component
PointerPTYPE Pointer (extended)
PosLeftPOS Positive numeric value
PosTopPOS Positive numeric value
PosUnitsPOS Unit Specification
SizeHeightSIZE12Positive numeric value
SizeUnitsSIZE Unit Specification
SizeWidthSIZE40Positive numeric value
TFontBoldTFSTYLE Boolean value
TFontFaceTFFACE Font face
TFontItalicTFSTYLE Boolean value
TFontSizeTFSIZE Font size
TFontUlineTFSTYLE Boolean value
TitleTITLE[Title]Free text
TypeTYPECHECKType of component
UnitsUNITS Unit Specification
ValueVALUE Boolean value
VarName  Name of variable
VarPermanent  Boolean value
VisibleVISIBLE Boolean value

Go back to the alphabetic list of components.