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

Home » Public Forums » archive » widgets and values
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: widgets and values [message #26068 is a reply to message #25943] Mon, 30 July 2001 14:14 Go to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
Ralf Schaa wrote:

> PRO clus_event
> ...
> WIDGET_CONTROL,eve.id,GET_UVALUE=uval
> ;
> CASE uval OF
> "range" : BEGIN
> CASE eve.value OF
> 1 : SET_UVALUE='range1' , PRINT, 'uservalue is now range1'
> 2 : SET_UVALUE='range2'
> 3 : SET_UVALUE='userrange'
> ENDCASE
> ...
> -------------------------------------------------

Sybtax is wrong. Need to use

Widget_control, eve.id, SET_UVALUE='range1'
print, 'uservalue is now range1'

Using user value is not a good idea in this case because then your
buttons are no longer invoking the same actions, once their uvalues
change. Use a field in the State structure of your widget tree to keep
information of this sort.
If placing more than one command on a line, use & between them.

BTW, have you ever considered getting a book on IDL? I can recommend
David Fanning's one, see
http://www.dfanning.com/documents/books.html
Or at least browse David's web site.
Good luck,
Pavel
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Overlaying filled contour plots
Next Topic: How to organize client-server IDL application?

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

Current Time: Fri Dec 05 05:15:58 PST 2025

Total time taken to generate the page: 0.01440 seconds