turning hourglass off after widget_event [message #28672] |
Mon, 07 January 2002 20:58 |
Kristine Hensel
Messages: 26 Registered: June 1999
|
Junior Member |
|
|
I got sick of losing the SHOWPROGRESS widget underneath all my other
zillion widgets (sorry, David), so I put a progress bar and a cancel
button inside one of my widgets.
Within the time-consuming loop, I force events at the cancel button to
be processed using WIDGET_EVENT:
progress_event = WIDGET_EVENT(cancel_button, /nowait), $
/save_hourglass)
The hourglass has been switched on at the beginning of the loop, and
setting /save_hourglass keeps it around until processing is finished,
when it disappears.
EXCEPT THAT this doesn't work in the runtime version - the hourglass
sticks around forever.
Any ideas as to what trick I'm missing?
Thanks,
Kristine
--
Kristine Hensel e-mail: kristine@esands.com
Environmental Systems & Services phone: +61-(0)3-9835-7901
20 Council St., Level 3 fax: +61-(0)3-9835-7900
Hawthorn East, VIC, Australia 3124
|
|
|