Re: Widget exclusive buttons [message #31916] |
Fri, 23 August 2002 09:09 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Cecilia Sanchez (c_sanchez@lanl.gov) writes:
> I have a widget with a couple of radio (exclusive) buttons. During
> program execution I would like to know if the use did select from either
> button, and print an appropriate message if none of them was selected.
> How can I test if a radio button has been selected?
Check the flag in your info structure that you set when
the button was selected and un-set when it was de-selected. :-)
Cheers,
David
P.S. Let's just say there are numerous reasons why
most of the IDL widget creation routines are found
wrapped up as compound objects. :-)
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|