Alignment attribute
Vertical switch: Value vr
Horizontal switch: Value hr
1.12.4 Functions of the switch
1.12.4.1 Properties for the switch
Tag property
The following switch positions can be assigned to the control with the property tag:
Attribute Meaning/behavior
left_position The value of the attribute is assigned to the control variable if the switch was
moved to the left.
right_position The value of the attribute is assigned to the control variable if the switch was
moved to the right.
upper_position The value of the attribute is assigned to the control variable if the switch was
moved up.
lower_position The value of the attribute is assigned to the control variable if the switch was
moved down.
disabled The attribute controls whether or not the switch can be operated.
If the value is true, a control action is not evaluated.
Changes in state caused by an assigned reference variable result in updat‐
ing of the switching state.
The final switch design must be determined by specifying further attributes. These attributes
must be defined together with the attribute left_position, right_position, upper_position or
lower_position.
Any desired outline can be generated for the switch by declaring one color as a transparent
color with the transparent attribute.
Attribute Meaning/behavior
picture Icon in foreground Name of the icon for the "not pressed" state
pictureDisabled Icon in foreground Name of the icon for the "disabled" state
transparent The attribute value includes the color value of the transparent color.
This color value is used for all icons assigned to the switch.
caption The attribute value includes the text associated with the switch position. This
text is displayed on the element and limited by the dimensions of the switch.
Generating user dialogs
1.12 Configuring your own buttons
Easy XML
158 Programming Manual, 12/2017, 6FC5397-1DP40-6BA1