[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Checkbox Starting Checked
- Subject: Re: Checkbox Starting Checked
- From: davidf(at)dfanning.com (David Fanning)
- Date: Tue, 22 May 2001 11:15:03 -0600
- Newsgroups: comp.lang.idl-pvwave
- Organization: Fanning Software Consulting
- References: <3B0A9461.CEAE6CEB@foodsci.purdue.edu>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:25044
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