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

Home » Public Forums » archive » Re: Getting state of a non-exclusive button (checkbox) widget
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 state of a non-exclusive button (checkbox) widget [message #70650 is a reply to message #70633] Mon, 26 April 2010 05:12 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
The Countertony writes:

> It's the if checkbox.status... line that I don't know how to phrase in
> IDL - trouble is, all the references to event-handling of buttons I've
> been able to find are for normal buttons, where you don't actually
> need to know the state, just the fact that the button's been clicked.
>
> Anyone able to suggest a solution?

Use Widget_Info with the checkbox button's ID to see if
the button is "set" or not:

checkboxstatus = Widget_Info(checkbuttonID, /BUTTON_SET)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Help on comparing 2 arrays
Next Topic: Re: image contrast, bias a la DS9

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

Current Time: Fri Oct 10 02:19:07 PDT 2025

Total time taken to generate the page: 0.07989 seconds