widget_control, event.TOP, /destroy [message #48933] |
Thu, 01 June 2006 08:02 |
Nikki Bloms
Messages: 7 Registered: December 2005
|
Junior Member |
|
|
Hello newsgroup,
I'm a beginning IDL user (still?), that is making a widget program. As
with most widget programs, I have a couple of instances where I call
widget_control, event.TOP, /destroy to destroy the top level base.
However, in one portion of the code, once the top level base has been
destroyed, the code continues to progress.
Here is a portion of the code:
errormsg = dialog_message(msg, /center, /question, title=$
'Please pick a set of DICOM files')
CASE errormsg OF
'Yes': ;---retrieves filepath of select dicom files
'No': widget_control, event.TOP, /destroy
ENDCASE
The next item in the event code is the creation of a dicom object from
the selected files retrieved in case of 'Yes'. If 'No' is selected in
the dialog_message, the code returns the following error message.
"XMANAGER: Caught unexpected error from client application. Message
follows...
OBJ_NEW: Error: Unable to locate file (filename argument) ,"
Why does the code keep progressing when I call /destroy? I've searched
through the newsgroup archives, as well as the Online Help and haven't
really found anything that might explain this.
Thanks in advance,
Nikki
|
|
|