wait for close down of a widget [message #6530] |
Tue, 09 July 1996 00:00 |
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
|
|
|