TmCopy Procedure
Copies the selected graphical elements from the specified VDA Tool to the clipboard.
Usage
TmCopy, tool_name
Parameters
tool_name—A string containing the unique name of a VDA Tool containing the graphical element that is being copied.
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. TmCopy copies the graphical element or elements on the current selection list to the clipboard (a temporary buffer).
The tool_name parameter for TmCopy must be the same as the tool name specified in the TmDelSelectedGraels function.
TmCopy is called by the Copy 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 copy and paste the 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
TmCopy, 'WzPlot_0'
TmPaste, 'WzPlot_0'