In the deactivated state, the picture is automatically displayed in shades of gray.
Note
See also properties - "Text", "TextAlignedToPicture", "PictureAlignment", "ScalePicture",
"PictureKeepAspectRatio".
PicturePressed – picture in the pressed state
Syntax: ReturnValue = ReadCWProperty(
TouchButtonVarName
, "PicturePressed")
WriteCWProperty(
TouchButtonVarName
, "PicturePressed",
Value
)
Description: Reads/sets the picture to be displayed if the TouchButton is pressed or checked.
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)
If a value is not specified (empty string " "), then in this state, the TouchButton shows the picture
specified with the "Picture" property.
The file name is specified as value, for example "sk_ok.png". The TouchButton automatically
determines the correct picture file from the current resolution directory (see Chapter Using
display images/graphics (Page 61)).
In the deactivated state, the picture is automatically displayed in shades of gray.
Note
See also properties - "Text", "TextAlignedToPicture", "PictureAlignment", "ScalePicture",
"PictureKeepAspectRatio".
PictureAlignment – picture alignment
Syntax: ReturnValue = ReadCWProperty(
TouchButtonVarName
, "PictureAlignment")
WriteCWProperty(
TouchButtonVarName
, "PictureAlignment",
Value
)
Description: Reads/sets the alignment of the picture on the TouchButton.
Parameters: TouchButtonVar‐
Name
Name of the display variable that contains a SlEsTouch‐
Button
Return Value Read value of the property (int)
Value Value to be set (int):
1 = left (default)
2 = right
32 = top
64 = bottom
128 = centered
Graphic and logic elements
7.6 SlEsTouchButton
SINUMERIK Integrate Run MyScreens (BE2)
254 Programming Manual, 12/2017, 6FC5397-1DP40-6BA1