Boolean controls

Boolean controls manipulate Boolean data, that is an on or off setting. They can also present a third unknown state. You use the unknown state when the control state cannot query the target object (perhaps a link to the target object is down), or to represent a mixed state. For example, if a check box is used to represent "Bold text" for the current text selection, the unknown state might occur when the current text selection contains both bold and non-bold text.

Figure 41 shows the standard Boolean controls, the check box, radio button and toggle button.


The check box and radio button can only adopt one label whereas the toggle button can adopt two (similar to the push button).

Since these controls are Boolean controls, you can use the same Boolean control state class in either control.

A Boolean control state can have one of three values, kUnknown, kFalse or kTrue. Figure 41 illustrates these values.

You can use Boolean control groups to group Boolean controls for mutual exclusion. See "Boolean control groups."


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker