comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Re-setting null values for compound button widget
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Re-setting null values for compound button widget [message #14934] Mon, 12 April 1999 00:00
davidf is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: arrays within structures
Next Topic: Re-setting null values for compound button widget

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:52:17 PDT 2025

Total time taken to generate the page: 0.00520 seconds