Re: Checkbox Starting Checked [message #25135] |
Tue, 22 May 2001 10:57 |
Mark Guagenti
Messages: 14 Registered: May 2000
|
Junior Member |
|
|
I definitely was!!! :)
Thanks
David Fanning wrote:
> I think you are missing it. :-)
>
> nonexclusiveBaseID = Widget_Base(/column)
> button1 = Widget_Button(nonexclusiveBaseID, Value='Dogs')
> button2 = Widget_Button(nonexclusiveBaseID, Value='Coyotes')
> Widget_Control, button2, /Set_Button
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting
> Phone: 970-221-0438 E-Mail: davidf@dfanning.com
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: Checkbox Starting Checked [message #25136 is a reply to message #25135] |
Tue, 22 May 2001 10:15  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Mark Guagenti (guagenti@foodsci.purdue.edu) writes:
> I am having some problems finding out how to use checkboxes in IDL. I
> am looking for a way to have a
> checkbox start (when the widget it realized) checked. I thought there
> would be some value that I would
> have to set with Widget_Control but I don't see what that value is. Am
> I just missing it?
I think you are missing it. :-)
nonexclusiveBaseID = Widget_Base(/column)
button1 = Widget_Button(nonexclusiveBaseID, Value='Dogs')
button2 = Widget_Button(nonexclusiveBaseID, Value='Coyotes')
Widget_Control, button2, /Set_Button
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|