controlling the hourglass cursor [message #41016] |
Thu, 16 September 2004 13:54  |
Benjamin Hornberger
Messages: 258 Registered: March 2004
|
Senior Member |
|
|
Hi all,
is there a way to turn the hourglass cursor on and off manually? What I
understand is that by widget_control, /hourglass the cursor is turned
into an hourglass until IDL is ready to process the next event, which
can't be controlled by the user.
There is a /save_hourglass keyword for widget_event, but I don't really
understand the documentation for that, and I never used widget_event
directly anyway...
Thanks,
Benjamin
|
|
|
Re: controlling the hourglass cursor [message #41070 is a reply to message #41016] |
Wed, 22 September 2004 16:26  |
kklare
Messages: 7 Registered: April 2004
|
Junior Member |
|
|
I run a special version of XMANAGER to allow me to have the main
program as part of the event loop. This is required to create
arbitrary variables in a main-level EXECUTE call of the user's text.
I added /NOWAIT (just call widget_event(/nowait) and /FUNC event_func
instead of event_pro) options to xmanager. (Sorry execute preclude
Virtual Machine.)
In this image analysis program I set the hourglass when starting an
action and it disappears when I contol it to zero.
Benjamin Hornberger <benjamin.hornberger@stonybrook.edu> wrote in message news:<41519f58$1_4@marge.ic.sunysb.edu>...
> That doesn't work for me. With widget_control, according to the IDL
> documentation and confirmed by my experiences, you can turn the
> hourglass only on, and it will turn off by itself when IDL (xmanager,
> widget_event or whoever is it in the end) is ready to process the next
> event.
>
> Benjamin
>
> Ken Klare wrote:
>> Just negate the hourglass:
>>
>> WIDGET_CONTROL, HOURGLASS=0
>>
>> I do not know about how to get the state.
|
|
|
Re: controlling the hourglass cursor [message #41084 is a reply to message #41016] |
Wed, 22 September 2004 09:13  |
James Kuyper
Messages: 425 Registered: March 2000
|
Senior Member |
|
|
Benjamin Hornberger wrote:
> Hi all,
>
> is there a way to turn the hourglass cursor on and off manually? What I
> understand is that by widget_control, /hourglass the cursor is turned
> into an hourglass until IDL is ready to process the next event, which
> can't be controlled by the user.
>
> There is a /save_hourglass keyword for widget_event, but I don't really
> understand the documentation for that, and I never used widget_event
> directly anyway...
It's been a while since I did any widget programming, so I'm not even
sure if the following suggestion makes any sense. Could you terminate
the hourglass by sending an event to the appropriate widget with
widget_control?
|
|
|