For both states, text and picture can be specifically displayed.
Note
See also the "Checkable" property.
ShowFocusRect – focus rectangle display
Syntax: ReturnValue = ReadCWProperty(
TouchButtonVarName
, "ShowFocusRect")
WriteCWProperty(
TouchButtonVarName
, "ShowFocusRect",
Value
)
Description: Reads/sets as to whether the TouchButton should display a focus rectangle as
soon as it is assigned the input focus.
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)
The focus frame color is automatically set with the Operate color setting, in the following
example "orange".
Figure 7-27 ShowFocusRect
Picture – displayed picture
Syntax: ReturnValue = ReadCWProperty(
TouchButtonVarName
, "Picture")
WriteCWProperty(
TouchButtonVarName
, "Picture",
Value
)
Description: Reads/sets the picture to be displayed if the TouchButton is in its quiescent
state (not actuated).
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)
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)).
Graphic and logic elements
7.6 SlEsTouchButton
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1 253