comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » widget_control, event.TOP, /destroy
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
widget_control, event.TOP, /destroy [message #48933] Thu, 01 June 2006 08:02
Nikki Bloms is currently offline  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
[Message index]
 
Read Message
Previous Topic: Re: Using Event Handlers to Change GUI Configuration
Next Topic: IDL 6.3 segmentation fault

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 13:48:15 PDT 2025

Total time taken to generate the page: 2.88111 seconds