TmCut Procedure

Cuts the selected graphical elements from the specified VDA Tool and moves them to the clipboard.

Usage

TmCut, tool_name

Parameters

tool_name—A string containing the unique name of a VDA Tool containing the graphical element that is being cut.

Keywords

None.

Discussion

The TmAddSelectedGrael function is used to add graphical elements to a selection list maintained by the Tools Manager. Once on the selection list, graphical elements can be copied, pasted, cut, or deleted. TmCut cuts the graphical element or elements on the current selection list and moves them to the clipboard (a temporary buffer).

The tool_name parameter for TmCut must be the same as the tool name specified in the TmAddSelectedGrael function.

TmCut is called by the Cut command from the Edit menu and by the Copy button on the Button Bar.

Example

The following commands obtain the names of the graphical elements registered for a VDA Tool, add one of the graphical elements to the selection list, then cut graphical element (a rectangle).

PRINT, TmEnumerateGraels('WzPlot_0')
TM_WINDOWID TM RECTANGLE LINE AXIS LEGEND TEXT MENUBAR 
   BUTTONBAR MESSAGE XX TM_HELP AXIS_0 AXIS_1 TM_DRAWING 
   RECTANGLE_0 LINE_1 GROUP_0
TmAddSelectedGrael, 'WzPlot_0', 'RECTANGLE_0'
PRINT, TmEnumerateSelectedGraels('WzPlot_0')
   RECTANGLE_0
TmCut, 'WzPlot_0'

See Also

TmCopy, TmDelete, TmPaste