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

Home » Public Forums » archive » wait for close down of a widget
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
wait for close down of a widget [message #6530] Tue, 09 July 1996 00:00
Joost Sytsma is currently offline  Joost Sytsma
Messages: 1
Registered: July 1996
Junior Member
Hello,


I have a question on how to wait for the close down of a specific widget.
An examples will make clear what I am after:

I have written a program to display a 3D image. In the menubar one can choose
to change the color table by starting xloadct. On our Silicon Graphics this
causes no problem: once you have changed the color table moving the mouse to
the image display shows the image in the new colors. When working remotely on
my PC, running XReflection to emulate an X terminal, I have to explicitly
refresh the image display to see the new colors. I would like to do that
automatically. Like this


PRO DepthView_eventhndlr,event
<snip>
CASE selected OF
<snip>
"COLOR": BEGIN
XLOADCT ; start xloadct to laod new colors
REPEAT J=1 UNTIL (XREGISTERED("xloadct") EQ =0)
; wait until xloadct is done
WSET, xplane_wid & TV, xplane ; refresh display to get new colors
END
<snip>
END

I can check that xloadct is indeed registered, but once the program is in the
repeat loop, xloadct does not react on the CLOSE button, and the program
remains in the repeat loop. How come and what is the solution to it?

Thanks for any suggestions!

Joost Sytsma
Dept. of Molecular Biophysics
Utrecht University
Netherlands
http://www.fys.ruu.nl/~wwwmbf/imaging
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: DICOM3_2_IDL
Next Topic: Re: U16 bit question

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

Current Time: Wed Oct 08 19:16:50 PDT 2025

Total time taken to generate the page: 0.00570 seconds