Re: Re-setting null values for compound button widget [message #14934] |
Mon, 12 April 1999 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
David Sheerin (dsheerin@taz.dera.gov.uk) writes:
> After creating an exclusive CW button group and sensitising it and
> selecting a button, is there any way (after desensitising and sensitising
> it again) to create the original configuration of no buttons selected?
I haven't tested this, but if you set the RETURN_ID keyword,
you will get the ID of the selected button back in the VALUE
field of the event handler. You could store this value as
the current selection:
info.current_selection = event.value
Then, when you wanted everything to be insensitive, you
could do something like this:
Widget_Control, info.current_selection, Set_Button=0
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
|
|
|