On the Graphics tab,
in the Active Objects group,
click Pushbutton to create a
Pushbutton object using the Command animation with
an object or pre-configured pushbuttons.
IWS
provides the following pre-configured button types, all of which
mimic the standard panel buttons of the same name:
- Momentary
(default): Changes state (Open or
Closed) when you press the button
and reverts to its initial state when you release the button. This
button type always displays in its normal position when you open
the screen.
- Maintained:
Changes state (Open or
Closed) when you press the button
but does not revert to its initial state when you release the
button. You must press the button again to change its present
state. This button type maintains its state across screen
changes.
- Latched: Changes
state (Open or Closed) when you press the button and remains
in this state until you release it by changing the Reset tag.
IWS
also provides the following button styles:
- Rectangular with a faceplate and indicator
light
- Rectangular without a faceplate or indicator light
(default)
- Rectangular with a 3-D
- Rectangular with a floating appearance
To add one or more pre-configured buttons to a
screen:
- Click the Pushbutton tool, and position the mouse
(pointer) on the screen.
- Click and drag to create/adjust the size of the
rectangular button.
The button size and text font characteristics
determine how much text you can display and how much area you can
touch on a touch screen. You can resize the button and change the
font characteristics later to permit longer messages to be shown in
a given space.
- Double-click on the object to open the Object Properties dialog.
Tip:
Alternatively, you can right-click on the pushbutton object or
highlight the object, press Alt+Enter, and select Properties from the resulting shortcut menu
to open the Object Properties
dialog.
Object Properties: Pushbutton
Figure 1. Object
Properties: Pushbutton
You can use this dialog to specify the following
parameters:
- Type drop-down
list: Click to select the pushbutton type (Momentary (default), Maintained, or Latched).
- State drop-down
list: Click to specify a default state for the pushbutton
(Normally Open (default) or
Normally Closed).
Click the button to toggle between its default and
non-default state (according to its specified Type). For example, in the button's initial
state, it may conform to characteristics specified in the
Open area of the Configuration dialog (see below). Click
the button again to toggle to the opposite state, which in this
example is Closed, and conform to
characteristics specified in the Closed area.
- Tag/Exp text box:
Type a tag or an expression to accomplish the following:
- Type in a tag to receive the Write Value from the appropriate state
(Open or Closed) area in the Configuration dialog.
- Type an expression to execute On
Down, when you press the pushbutton down.
Note:
IWS does not write the result of any expression in the
Tag/Exp field into a
tag.
- Indicator text
box: Type a tag to define an indicator that causes the button to
change to a specified color when the tag value matches one of two
specified values. You must define both the colors and tag values in
the Configuration dialog. If
you leave this field blank, the indicator changes color
automatically when you press the button.
- E-Sign checkbox:
When this option is checked, the user will be prompted to enter the
Electronic Signature before executing the animation.
- Reset text box
(active for Latched pushbutton
type only): Type a tag to control the button's latched state, as
follows:
- Type a zero and the button will remain in a latched
state after you press it.
- Type a nonzero value and a latched button will
become unlatched after you press it. You must reset the tag value
to zero before you can press the button again.
- Key area: Specify
a keyboard key or create a key combination to toggle a pushbutton
when you have no pointing device (mouse or touch screen) or if you
want to create shortcut keys in addition to pushbuttons.
- Key drop-down
list: Type a key in the text box or select a non-alphanumeric key
from the drop-down list. Enter a single character or key only.
Numbers are not valid entries for this field.
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 text box:
Type a tag using a nonzero value to disable this pushbutton so that
pressing the button has no effect. This box is empty by default,
which also enables the Command animation.
- Ext Trans.
checkbox: Click (check) to translate the text automatically using
pre-configured translation worksheets. (See the
Translation Tool for more information.)
- Security text box:
Type a value to specify a security level (0 to 255) for this
button. If the user does not have the specified security level, the
button becomes inactive. If the user has the appropriate security
level, or you leave this field blank, the button remains
active.
- Config button:
Click to open the Configuration dialog, which allows you to
specify style and state parameters for the pushbutton:
Figure 2.
Configuration dialog
This dialog provides the following parameters: