TmUnregister Procedure

Removes the specified VDA Tool from the Tools Manager registry.

Usage

TmUnregister, tool_name

Parameters

tool_name—A string containing the unique name of a currently registered VDA Tool.

Keywords

None.

Example

The following code simply initializes the VDA Tools Manager, obtains a unique VDA Tool name, creates a top-level widget, and registers the VDA Tool. The TmEnumerateToolNames function verifies that the Tool was registered. Then, the tool is unregistered. This too is confirmed with TmEnumerateToolNames.

TmInit
unique = TmGetUniqueToolName('WzPlotTool')
top = WwInit('VDA', 'Examples', layout, $
   Shell_name='WzPlotTool', Layout_name='toolArea', $
   Title=unique_name, /Form)
TmRegister, unique, top
; Print the names of the tools currently registered with the Tools
; Manager.
PRINT, TmEnumerateToolNames()
; Note that the previously registered tool name is now removed.
TmUnregister, unique
PRINT, TmEnumerateToolNames()

See Also

TmEnumerateToolNames, TmGetMessage, TmGetTop,
TmGetUniqueToolName, TmInit, TmRegister