how do I delete ENVI windows from a procedure? [message #38548] |
Tue, 16 March 2004 10:20 |
timothy.williams
Messages: 20 Registered: October 2001
|
Junior Member |
|
|
I have a ENVI/IDL procedure that performs various steps in some
processing. One of the steps is to do a couple of envi_display_bands
calls to display a couple of images. After the user is done with
enhancing the image displays, I have the user click a button to
continue on with more processing. This extra processing calls a second
IDL procedure that puts up more windows (not ENVI displays).
When the second IDL procedure is done, I do a wdelete on each of the
windows it created, since I have the window ids. I'd like to be able
to remove the ENVI images and their associated displays. I can get the
display numbers, window ids and the opened file ids with
envi_get_display_numbers(), envi_disp_query, and do a wdelete on the
window ids, and a envi_file_mng on the file ids, but I want to avoid
the popup window about deleting the display when I remove each ENVI
file.
What I want to do is the same thing as a 'File->Close All Files' in
the Available Files List widget from my procedure.
Is there a way to do this?
Thanks.
|
|
|