The Latching Button display element works much like the Parameter Button element described in the previous chapter, but specialized to show and control an enumeration parameter which knows exactly two states (e.g. on/off or true/false).
When the operator changes the state of the button by clicking it once, the latching button sends the 'other' parameter value to the device. On the other hand, if some other instance in the system changes the parameter state, the latching button recognizes this and changes the up/down state of the button accordingly.
Like the parameter button, the latching button may be labeled with text or an image. To reflect the actual state, the latching button always is configured with two text string or two image names which are shown according to the actual parameter value.
The attributes listed below may be configured to customize a display element of this type:
Message ID: The message ID addresses the parameter the element shall display or edit. The message ID consists of the MNC name, device name followed by a colon and the name of the parameter.ANT.11.XMIT-1.tx.on for example addresses the variable tx.on at a device named XMIT-1 at MNC.
Label up: This label text is drawn on the button in "up" state.
Label down: This label text is drawn on the button in "down" state..
Value up: The value to be sent when the button is clicked an changes to "up" state.
Value down: The value to be sent when the button is clicked an changes to "down" state.
Privilege level: The privilege level necessary to change this parameter. The predefined screens of the software use 100. In your own screens you may set certain parameters to higher privilege levels, limiting the group of operators permitted to change the parameter.
Use icon instead of label: Check this checkbox in order to make the button show an icon instead of a label text.
Font: Font contains two options:
Conditionally enable widget: Parameter fields may be locked to read only state unless another parameter matches a given value. For instance, changing the position of a wave guide switch may be inhibited while the carrier is switched on. Check this to activate this feature.
Query before applying changes: Check this mark to make the element show a query before a parameter gets actually commanded.
$P get replaced by the parameter name (message ID). Any occurrences of the pattern $V get replaced by the new value to set.Color: Checking this mark enables the variable background color feature for this screen element. Depending on the actual value of the variable addressed by color id, the element's background is set using the translation table. If the actual value of the color id variable does not match any of the table entries or if no color id is specified, the first color in the list is used to draw the element's background.The buttons Add/Set/Delete along with the value and color fields are used to edit the color translation table.