7.6.6 Positioning and aligning picture and text
Positioning pictures
A picture is positioned as follows with the specified alignment:
● In a first step, the picture matching the current resolution is determined from the associated
resolution directory.
● The rectangle of the area (ClientArea) is then reduced by the specified clearances to the
edges (MarginArea).
The MarginArea can be influenced using the "setMargins" function:
– setMargins(-1, -1, -1, -1, -1)
Figure 7-33 setMargins(-1, -1, -1, -1, -1)
– setMargins(0, 0, 0, 0, 0)
Figure 7-34 setMargins(0, 0, 0, 0, 0)
– setMargins(20, 20, 20, 20, 20)
Figure 7-35 setMargins(20, 20, 20, 20, 20)
Example for alignment "left"
The area is horizontally halved, so that the picture to be displayed can assume half (maximum)
of the area.
Graphic and logic elements
7.6 SlEsTouchButton
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1 269