6.3.30 RESIZE_VAR_IO and RESIZE_VAR_TXT
Description
The RESIZE_VAR_IO() and RESIZE_VAR_TXT() commands changes the geometry of
the input/output component or text component of a variable.
After setting the new geometry, all fields of the screen are positioned as if the screen had been
configured with these positions from the start. In this way, all fields are correctly aligned,
depending on the configuration.
Programming
Syntax: RESIZE_VAR_IO
(Variable name, [X], [Y], [Width], [Height])
RESIZE_VAR_TXT
(Variable name, [X], [Y], [Width], [Height])
Description: Changes the geometry of the input/output component or text component of a
variable.
Parameter: Variable name Name of the variable whose geometry of the input/out‐
put component or text component of a variable is to be
changed.
X X-coordinate, top left
Y Y-coordinate, top left
Width Width
Height Height
Note
The previous value is retained for each value of X, Y, Width or Height that is not specified. If
-1 is specified for one of these values, "Run MyScreens" sets the specified component of the
default position.
Example
RESIZE_VAR_IO("MyVar1", 200, , 100) ; The I/O component of the "MyVar1" variable
is moved to the X position 200 pixels, the
width is set to 100 pixels. The Y position and
the height of the previous value are kept.
Programming commands
6.3 Functions
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1 173