Siemens SINUMERIK 840DE sl Commissioning Manual page 776

Basesoftware and operating software
Hide thumbs Also See for SINUMERIK 840DE sl:
Table of Contents

Advertisement

Generating user dialogs
1.7 XML identifier
Tag identifier
RESIZE Continued
58
Meaning
Example:
<let name="screen_size" type="StructSize" />
<form name="menu_userscale_form" autoscale_content="off">
<init>
<caption>Use auto scaling</caption>
<function name="hmi.get_hmi_resolution">screen_size</function>
<print text="screen size: w %d h: %d">screen_size.width,
screen_size.height</print>
<data_access type="true" />
<control name="s_c" xpos="8" ypos="140" fieldtype="readonly"
width="500" refvar="string_var" hotlink="true"/>
<if>
<condition>screen_size.width == 800</condition>
<then>
<control name="s_1" xpos="508" ypos="140" fieldtype="readonly"
width="100" refvar="string_var1" hotlink="true"/>
</then>
</if>
<control name="s_w" xpos="200" ypos="350" fieldtype="readonly"
refvar="screen_size.width" hotlink="true"/>
<control name="s_h" xpos="200" ypos="370" fieldtype="readonly"
refvar="screen_size.height" hotlink="true"/>
</init>
<paint>
<text xpos ="68" ypos="310">Text</text>
<text xpos ="8" ypos="350">screen width</text>
<text xpos ="8" ypos="370">screen height</text>
</paint>
<resize>
<function name="hmi.get_hmi_resolution">screen_size</function>
<print text="resize_event screen size: w %d h:
%d">screen_size.width, screen_size.height</print>
<switch>
<condition>screen_size.width</condition>
<case value="640">
<function name="control.delete">_T"s_1"</function>
</case>
<case value="800">
<control name="s_1" xpos="508" ypos="140" fieldtype="readonly"
width="100" refvar="string_var1" hotlink="true"/>
</case>
</switch>
</resize>
</form>
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1
Easy XML

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents