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