BackgroundPictureKeepAspectRatio – scale background picture and keep aspect ratioSyntax: ReturnValue = ReadCWProperty(TouchButtonVarName, "BackgroundPicture‐KeepAspectRatio")WriteCWProperty(TouchButtonVarName, "BackgroundPictureKeepAspectRa‐tio",Value)Description: Reads/sets, whether, when scaling (property "ScaleBackgroundPicture" ="TRUE") the aspect ratio of the background picture should be kept or not.Parameter: TouchButtonVar‐NameName of the display variable that contains a SlEsTouch‐ButtonReturn value read value of the property (bool)Value value to be set (bool): TRUE (default) or FALSENoteSee Chapter Positioning and aligning picture and text (Page 269).7.6.4 FunctionsYou can call the subsequently listed functions using the CallCWMethod() function.ExampleSetting the margins of the SlEsTouchButton linked using display variable "MyTouchButton".The result is written to register 0.REG[0] = CallCWMethod("MyTouchButton", "setMargins", 20, 20, 20, 20,20)OverviewFunction DescriptionsetMargins Setting the marginsserialize Saves/restores the actual statesetMargins – setting the marginsSyntax: ReturnValue = CallCWMethod(TouchButtonVarName, "setMargins",left,top,right,bottom,center)ReturnValue = CallCWMethod(TouchButtonVarName, "setMargins",left,top,right,bottom,center,marginAlignment)Description: Using this function, the margin clearances and the distance between picture andtext are defined.If a value of "-1" is specified, then this value is applicable for the system defaultclearance. If the value is greater or equal to "0", then the value is set as edgeclearance.Graphic and logic elements7.6 SlEsTouchButtonSINUMERIK Integrate Run MyScreens (BE2)Programming Manual, 12/2017, 6FC5397-1DP40-6BA1 265