| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (6 out of 9)

Check Boxes

Check boxes control autonomous choices that can assign either an on or off value to a symbolic, quantitative, or text variable or parameter. When the box is checked, the assigned value is on, and an X appears in the check box. When the choice is off, the check box is blank. The following example shows the 3-hole-punch and Edge-binding options with an on value, and the Corner-stapled option with an off value.


When you create check boxes, you assign each box to a separate variable or parameter.

Specifying the Activation Value

The Value-on-activation attribute specifies what value, if any, the variable or parameter receives when the check box is activated. The default is none.

Although this attribute is not required, we recommend that you enter a value identical to the On-value attribute if you want the check box to be selected when activated, or the same as the Off-value attribute if you want the check box to be blank when activated.

If you do not set the default value, the check box contains a question mark when it is activated.

Allowable values for this attribute depend on the data type of the variable or parameter.

Specifying the On and Off Values

The On-value and Off-value attributes are required values for check boxes, indicating the value that G2 assigns to the variable or parameter when the check box is selected and when it is not. The default value is none. Allowable and default values are datatype specific for the variable or parameter.

For this variable or parameter type... The value can be...
quantitative
any float or integer
integer
any integer
float
any float
symbolic
any symbol
logical
any truth value
text
any text string

Class-Specific Attributes

The class-specific attributes of check boxes are:

Attribute Description
Value-on-activation
The value, if any, to assign the variable or parameter upon item activation.
Allowable values:
Any appropriate value for the variable or parameter being represented.
Default value:
none


On-value
The value to assign the variable or parameter when the check box is selected.
Allowable values:
Any appropriate value for the variable or parameter being represented.
Default value:
none


Off-value
The value to assign the variable or parameter when the check box is not selected.
Allowable values:
Any appropriate value for the variable or parameter being represented.
Default value:
none


| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (6 out of 9)

Copyright © 1997 Gensym Corporation, Inc.