The features described in this topic are obsolete
and should not be used in new IDL code.
LIVE_DESTROY
Syntax | Arguments | Keywords | Examples | Version History
The LIVE_DESTROY procedure allows you to destroy a window visualization or an element in a visualization.
Syntax
LIVE_DESTROY, [Name1,..., Name25] [, /ENVIRONMENT] [, ERROR=variable] [, /NO_DRAW] [, /PURGE] [, WINDOW_IN=string]
Arguments
Name
A string containing the name of a valid LIVE visualization or element. If a visualization is supplied, all components in the visualization will be destroyed. Up to 25 components may be specified in a single call. If not specified, the entire window or buffer (WINDOW_IN) and its contents will be destroyed.
Warning
Using WIDGET_CONTROL to destroy the parent base of a LIVE tool before using LIVE_DESTROY to clean up will leave hanging object references.
Keywords
ENVIRONMENT
Destroys the LIVE_ Tools environment (background processes).
ERROR
Set this keyword to a named variable to contain the returned error message (string). An empty string is returned if no errors occurred during the operation. By default, errors are reported via a GUI.
Note
If a named variable is passed in this keyword and an error occurs, the error GUI will not be displayed.
NO_DRAW
Set this keyword to inhibit the visualization window from drawing. This is useful if multiple visualizations and/or annotations are being created via calls to other LIVE_Tools in order to reduce unwanted draws and help speed the display.
PURGE
Destroys LIVE_ Tools (use this keyword for cleaning up the system after fatal errors in LIVE_ Tools). This keyword may cause the loss of data if not used correctly.
WINDOW_IN
Set this keyword equal to a name (string, case-sensitive) of a LIVE tool window or a LIVE tool buffer. The WIN tag of the REFERENCE_OUT structure from the creation of the LIVE tool will provide the window or buffer name. Window names are also visible in visualization window titlebars. If only one LIVE tool window (or buffer) is present in the IDL session, this keyword will default to it.
Examples
Version History
Introduced: 5.1