The radio button object is useful to create
interfaces where the users can chose one option from multiple
options on the display.
On the
Graphics
tab, in the
Active Objects group,
click
Radio Button to create a
radio button object on your screen:
- Click in the drawing area and drag the mouse/cursor
to draw the radio button 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: Radio Button
Tip: To change
the default size of the radio button, edit your project file
(
project_name.app) to add the
following setting:
[Objects]
RadioButtonSize=height_in_pixels
Doing this will change the size of all radio buttons
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 radio button 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 checkbox:
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 radio button.
Click (check) the Shift, Ctrl, and/or Alt boxes to create a combination key,
meaning the Shift, Ctrl, and/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
further 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 radio button 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 radio button 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:
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: Press
this button to open the Advanced dialog:
Figure 2. Advanced
dialog