The Check Box object is useful to create
interfaces where the users can enable/disable an option on the
display.
On the
Graphics
tab, in the
Active Objects group,
click
Check Box to create a Check
Box object on your screen:
- Click in the drawing area and drag the mouse/cursor
to draw the check box and its label.
- Release the mouse button when the object is the size
you want.
- Double-click on the object to view the Object Properties dialog.
Figure 1. Object
Properties: Check Box
Tip: To change
the default size of the check box, edit your project file
(
project_name.app) to add the
following setting:
[Objects]
CheckBoxSize=height_in_pixels
Doing this will change the size of all check boxes in
your project, so be careful. Also, this only works for projects
running in the project viewer (Viewer.exe); it does not work for
projects running in CEView or the Web thin client.
Use the
Object
Properties dialog to specify the following parameters for
the Check Box object:
- Caption: Specify a
caption by typing the text into the text box. You can include a tag
by enclosing it in curly brackets (e.g., {tagname}).
- Fonts: Specify a
font style for the caption by clicking the Fonts button.
- E-Sign: When this
option is checked, the user will be prompted to enter the
Electronic Signature before executing the command.
- Confirm check box:
Click (check) this box to ensure IWS prompts you to confirm the action at
runtime.
- Key drop-down
list: Select a key from the list to associate that keyboard key
with the object or group of objects. You can then press this key to
check/uncheck the check box.
- Click (check) the Shift, Ctrl, or Alt box to create a combination key, meaning
the Shift, Ctrl, or Alt key must be pressed with the key specified
in the drop-down list.
- Click the browse button … to open the Key Modifier dialog, which enables you to
modify your combination keys. You can choose Left, Right
or Left or Right to specify the
position on the keyboard of the Shift, Ctrl or Alt
key in the combination key. If you choose Left or Right, the command will be executed
any time either of these keys is pressed in combination with the
key specified in the drop-down list.
- Disable field:
Type a tag or expression into this field to enable and disable the
object. You disable the Check Box object when you enter a value
different from 0.
- Security field:
Type a value in this field to specify a security level for the
object, as defined under Security. When a user logs on, and does
not have the specified security level, IWS disables the object.
- Tag field: When
the user clicks on the check box during runtime, the value of this
tag is updated. If no Feedback
was specified, the value of this tag is also used to indicate the
current status of the object.
- True Value field:
Specify a value that will be used to change the control to TRUE
state and to indicate that the control is in TRUE state. For more
information about states, please refer to the states table.
- Advanced button:
Press this button to open the Advanced dialog:
Figure 2. Advanced
dialog