Reference Guide > T Routines > TmSetGraelRectangle Procedure
  

TmSetGraelRectangle Procedure
Sets the selection rectangle for a graphical element, or a set of graphical elements.
Usage
TmSetGraelRectangle, tool_name, grael_name, rectangle
Parameters
tool_name—A string containing the unique name of a VDA Tool.
grael_name—A string containing the name of the graphical element.
rectangle—A four-element array defining the endpoints of a rectangle in device coordinates: [x1 y1 x2 y2].
Keywords
None.
Discussion
The rectangular boundary is a region in which the user can click to select the graphical element. This rectangle is also the highlighted border that indicates when a graphical element has been selected.
Use this function to reset the size of a graphical element’s boundary rectangle after the graphical element has been resized or moved.
Example
The following commands reset the bounding box for an axis.
rect = [50, 227, 492, 247]
TmSetGraelRectangle, 'WzPlot_0', 'AXIS_0', rect
See Also
TmAddGrael, TmDelGrael, TmEnumerateGraels, TmGetGraelRectangle, TmGetUniqueGraelName
 

Version 2017.0
Copyright © 2017, Rogue Wave Software, Inc. All Rights Reserved.