Control variable Meaning/behavior
Caption_upper_position Variable type: String
Text in the upper position
Caption_lower_position Variable type: String
Text in the lower position
disabled Variable type: Bool
Value:
1 = true - switch disabled
0 = false - switch can be operated
Horizontal display
<control name="name" xpos="x position" ypos="y position"
width="width" height="height" fieldtype="switch" alignment="hr">
<property left_position="value" picture="name" />
<property right_position="value" picture="name" />
</control>
Vertical display
<control name="name" xpos="x position" ypos="y position"
width="width" height="height" fieldtype="switch" alignment =“vr“>
<property upper_position="value" picture="name" />
<property lower_position="value" picture="name" />
</control>
Or assign handler function
<control name="name" xpos="x position" ypos="y position"
width="width" height="height" fieldtype="switch"
function="switch_handler" hotlink="true" alignment ="vr">
</control>
Example
icon_left.bmp
icon_right.bmp
<let name="switch_state" />
<control name="main_switch" xpos="100" ypos="53" width="40"
height="30" fieldtype="switch" refvar="switch_state" hotlink="true"
alignment="hr">
<property left_position=“10“ picture=“icon_left.bmp“ />
<property right_position=“11“ picture=“icon_right.bmp“ />
Generating user dialogs
1.12 Configuring your own buttons
Easy XML
160 Programming Manual, 12/2017, 6FC5397-1DP40-6BA1