Note
See Chapter Positioning and aligning picture and text (Page 269).
Also see properties - "Text", "TextAlignedToPicture", "PictureAlignmentString", "ScalePicture",
"PictureKeepAspectRatio".
PictureAlignmentString – picture alignment
Syntax: ReturnValue = ReadCWProperty(
TouchButtonVarName
, "PictureAlignment‐
String")
WriteCWProperty(
TouchButtonVarName
, "PictureAlignmentString",
Value
)
Description: Reads/sets the alignment of the picture. This property is analogous to the "Pic‐
tureAlignment" property. However, the value is not transfigured here as number
(int), but as string.
Parameter: TouchButtonVar‐
Name
Name of the display variable that contains a SlEsTouch‐
Button
Return value read value of the property (string)
Value value to be set (string):
"Left" = left (default)
"Right" = right
"Top" = top
"Bottom" = bottom
"Center" = centered
Note
See Chapter Positioning and aligning picture and text (Page 269).
See also properties - "Text", "TextAlignedToPicture", "PictureAlignment", "ScalePicture",
"PictureKeepAspectRatio".
ScalePicture – scale picture
Syntax: ReturnValue = ReadCWProperty(
TouchButtonVarName
, "ScalePicture")
WriteCWProperty(
TouchButtonVarName
, "ScalePicture",
Value
)
Description: Reads/sets whether the TouchButton (depending on the alignment) should
scale the picture to be displayed.
Parameters: TouchButtonVar‐
Name
Name of the display variable that contains a SlEsTouch‐
Button
Return Value Read value of the property (bool)
Value value to be set (bool): TRUE or FALSE (default)
Note
See Chapter Positioning and aligning picture and text (Page 269).
Graphic and logic elements
7.6 SlEsTouchButton
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1 255