TmDelete Procedure

Permanently deletes the selected graphical elements from the specified VDA Tool.

Usage

TmDelete, tool_name

Parameters

tool_name—A string containing the unique name of a VDA Tool from which the graphical elements will be deleted.

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. TmDelete cuts the graphical element or elements on the current selection list. The deleted elements are not moved to the clipboard; thus, they cannot be pasted back into a VDA Tool window.

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

TmDelete is called by the Delete 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 delete 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
TmDelete('WzPlot_0')

See Also

TmCopy, TmCut, TmPaste