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

Home » Public Forums » archive » XLoadCT in a procedure ?????
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
XLoadCT in a procedure ????? [message #5291] Thu, 16 November 1995 00:00
jgm is currently offline  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
[Message index]
 
Read Message
Previous Topic: Re: Inaccuracies
Next Topic: Re: How to keep a widget in front?

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

Current Time: Wed Oct 08 18:15:53 PDT 2025

Total time taken to generate the page: 0.00436 seconds