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

Home » Public Forums » archive » Re: Getting checkbox value
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: Getting checkbox value [message #28750 is a reply to message #28743] Tue, 08 January 2002 13:02 Go to previous messageGo to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
I had a case when I kept on adding checkboxes a few times while
developing a program. I didn't want to go and change the State structure
all the time, so I wrote a small program called CHECKBOX. You can find
it here:
http://spot.colorado.edu/~romashki/idl/checkbox.pro
All you need is to set up a long integer somewhere (be it State
structure or Uvalue of one of the widgets already referred to in State
structure, for easy retrieving). Then, in the event code for the
checkbox, you call the CHECKBOX with event.select as ACTION keyword argument.
CHECKBOX program then will set an appropriate bit of the Long you
created, and the state of that bit is the same as the state of that
checkbox. Later, you can call
status = checkbox(Long_var, bit_number, /get)
and get status of checkbox.
Think of the space savings - you can store state of some 64 checkboxes
in just 8 bytes!
Pavel

Lisa Gandy wrote:
>
> I am trying to get the value of a checkbox...meaning I would like to
> know if the checkbox is selected at a certain time. I have looked
> through the references under widget_control and widget_info but
> neither of these keywords seem to return if a checkbox button has been
> selected or not. Did I overlook something?
>
> Cheers,
> Lisa Gandy
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: RGB image
Next Topic: object widgets

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

Current Time: Sat Oct 11 15:12:58 PDT 2025

Total time taken to generate the page: 0.72339 seconds