XLoadCT in a procedure ????? [message #5291] |
Thu, 16 November 1995 00:00 |
jgm
Messages: 2 Registered: November 1995
|
Junior Member |
|
|
Hi.
I have a slight problem with Xloadct. It does not behave well
when used inside a case statement in a procedure. When Xloadct
is in a procedure, the pro naturally waits for xloadct to be
finished before continuing, but when I use Xloadct within a
case statement, the event handler does not seem to wait for
the Xloadct pro to finish.
The relevant part of my code is:
PRO jv_event, event
Widget_control, event.id, GET_Uvalue=eventval
CASE eventval of
'COLOUR':Begin
XLoadCT
TvLCT, r1,g1,b1,/GET
XLoadCT
TvLCT, r2,g2,b2,/GET
Combine_CT ;calls another procedure
END
ENDCASE
END
This works fine if I use LoadCT instead but I really need to
get Xloadct working in this situation.
Thanx .
Julian
jgm@newt.phys.unsw.edu.au
|
|
|