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

Home » Public Forums » archive » Interrupting a widget application
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Interrupting a widget application [message #12473] Mon, 03 August 1998 00:00
Alex Schuster is currently offline  Alex Schuster
Messages: 124
Registered: February 1997
Senior Member
Hi!

I have written a widget application which, once the START button is
pressed, does lots of huge, time consuming calculations.

My first solution was to create another widget, containing an ABORT
button. I used WIDGET_EVENT to check whether the button was presed, and
this worked okay. I just would prefer not to have a second window only
for this purpose.

So I added the button directly to the main widget. Surprisingly, this
works. I use WIDGET_EVENT( abort_button, /nowait, /save_hourglass),
which does not return an event for the button, but it triggers the
XMANAGER somehow to enter the event routine for the button. There I set
a global variable to indicate that the button was pressed, so I can exit
the calculation routine.

But there is a problem: WIDGET_CONTROL,/hourglass does not work any
more, and I don't understand why this is the case.




That is why I wrote this posting. After writing this, I just realized
that another call of WIDGET_EVENT for any widget sets the cursor back to
the normal state. Hm. No problem any more. But I typed this stuff
anyway, and maybe this could be interesting to someone, so why not just
hit the SEND button right n
[Message index]
 
Read Message
Previous Topic: Re: REVERSE even row elements in data array.
Next Topic: Re: Robust curve fitting

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

Current Time: Fri Oct 10 10:48:45 PDT 2025

Total time taken to generate the page: 0.72341 seconds