Screens and Graphics • Multistate Pushbutton : Enables you to display messages and bitmap images. This object also resembles a multi-position switch in that it allows you to switch (toggle between) messages by clicking on the object during runtime. These smart message object types vary in their ability to display messages and graphics, write to a tag, and control how many messages and graphics display on the screen. However, all of the object types can receive process input (Read Tag value) to determine which message to display. To add a smart message object to the screen: 1. Click the Smart Message button and position the mouse on the screen. 2.
Click and drag to create (and adjust the size of) a rectangle. You use the rectangle's size and font size to determine how much text and how large a bitmap image you can display on the screen. Later, you can change the rectangle's size and font characteristics to allow longer messages to display in a given space. 3. Double-click on the object to open the Object Properties dialog. Object Properties: Smart Message You can use this dialog to specify the following parameters: • Type combo-box: Click to select the smart message object type. The object type sets the behavior of the object during runtime and the features supported by it:
• Message Display (default) • Multistate Indicator • Multistate Pushbutton • Value drop-down list: Select the type of values used to index the message list: • Boolean : Provides two valid states. Use this selection when you want to display either one of two different messages, based on a boolean value (0 or 1). • Integer (default): Provides 500 valid states. Use this selection when you want to display different messages based on specific values from an Integer tag. • LSB (least significant bit): Provides 32 valid states (32 bits in an integer value). Use this selection when you want to display different messages based on which bit from an integer tag is set.
If more than one bit from the Integer tag is set simultaneously, the message associated with the least significant bit that is set (value 1) will be displayed. Note: If Multistate Pushbutton is the Smart Message type, only 16 different messages can be associated with the object, even for Integer or LSB values. • Read Tag/Expr text box: Enter the name of an integer or a Boolean tag. The value of this tag will determine which message will displayed by the object during runtime. • Write Tag text box (optional and available for Multistate Pushbutton only): Enter the name of an integer or a Boolean tag.
The value associated with the message currently displayed by the object is written to this tag. • Align : Select the alignment of the text displayed by the Smart Message object. • Key area (optional and available for Multistate Pushbutton only): Shortcut used to go to the next message (step) using a keyboard when the Multistate Pushbutton type is selected. This option is especially useful when creating projects for runtime devices that do not provide a mouse or touch-screen interface, when the keyboard is the only physical interface available to interact with your project during runtime. • Event drop-down list (available for Multistate Pushbutton only):
Select one of the following options to specify when the message is changed: Page 180 InduSoft Web Studio