Re: Exiting widget application [message #1539] |
Mon, 29 November 1993 08:06  |
offenbrg
Messages: 31 Registered: August 1993
|
Member |
|
|
plewe@dl.mpi-dortmund.mpg.de (J.Plewe) writes:
> How can I leave a widget application? I tried something like this:
> wdelete,0
> Widget_Control, event.top, /DESTROY
> exit
>
> After this, the system really leaves IDL but generates this message:
> % Callback routines must not STOP or EXIT
> % Execution halted at XMANAGER </mpisys/idld/r3.1/lib/widgets/xmanager.pro(
> 450)> .
> % Called from ROUT <rout.pro( 190)>.
> % Called from $MAIN$ .
"EXIT" means "Exit from IDL," not "Exit from this routine."
If you wish to quit from a procedure or function, use RETURN, or just END
the routine as you would normally.
You can not issue an EXIT (from IDL) command from within a Widget routine.
You can from other routines, but XMANAGER prevents you from aborting a
Widget-routine with a STOP or with an EXIT.
Hope this helps,
Joel
--
Joel D Offenberg | "Aren't you in the position of a life-long
Hughes STX/ UIT Science Team | vegetarian giving us your recipe for steak
offenbrg@fondue.gsfc.nasa.gov | and kidney pie?" - Rumpole of the Bailey
I get paid to stare into space. |
|
|
|