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

Home » Public Forums » archive » Re: State of non-exclusive button
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: State of non-exclusive button [message #26392 is a reply to message #26391] Fri, 31 August 2001 09:56 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ken Bowman (k-bowman@null.tamu.edu) writes:

> How do you get the state (checked or unchecked) of a non-exclusive
> (toggle) button?

This is simple. Wrap the non-exclusive base up
in an object widget and call the IS_CHECKED method. :-)

> According to the Reference Guide there is a SET_BUTTON keyword to
> WIDGET_CONTROL, but no GET_BUTTON keyword. The GET_VALUE keyword
> returns the value of the button *label*. I guess that is consistent
> with using WIDGET_BUTTON(id, VALUE = 'Button Label') to create the
> button, but it seems to me to confuse the notions of 'value' and
> 'label'.

I'm telling you. First it's spelling, and now it's
consistency. What do you guys want anyway!? Those of
us who bill by the hour know the value of "confusing
notions", I can tell you. :-)

I think you have to keep track of non-exclusive
buttons the same way you keep track of droplist
values: you have to have some kind of buttonState
variable that you store in some user value that is
easy to get to. Personally, I'd store it in the user
value of the non-exclusive base widget. Then every
button could access it (to change its state) by looking
for it in its parent widget. Or, you could just put
it in the info structure along with everything else
you need to run your program.

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: better doc_library?
Next Topic: Could i find some examples for IDL DataMiner ...?

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

Current Time: Wed Oct 08 19:22:34 PDT 2025

Total time taken to generate the page: 0.00461 seconds