//M(MyTBMask/"My CustomWidget TouchButton ...")
DEF MyTB1 = (W///,"slesstdcw.SlEsTouchButton"/////70,20,200,100/0,0,0,0)
END_LANGUAGE
The texts are automatically wrapped around at the word limits in the rectangle provided. The
forced line break is only possible if the text to be displayed is sourced from a language file A
"%n" must be inserted at the appropriate location in the text (see the following example).
user_eng.txt
85001 0 0 "This is%nmy%nfirst%nTouchButton !!!"
Configuration file:
WRITECWPROPERTY("MyTB1", "text", $85001)
Result
Figure 7-41 Example of a line break in a language-dependent text
Graphic and logic elements
7.6 SlEsTouchButton
SINUMERIK Integrate Run MyScreens (BE2)
272 Programming Manual, 12/2017, 6FC5397-1DP40-6BA1