Re-setting null values for compound button widget [message #14935] |
Mon, 12 April 1999 00:00 |
David Sheerin
Messages: 4 Registered: April 1999
|
Junior Member |
|
|
Hi all
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?
Thanks for any help received.
David
|
|
|
Re: Re-setting null values for compound button widget [message #15020 is a reply to message #14935] |
Mon, 12 April 1999 00:00  |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
David Sheerin wrote:
>
> Hi all
>
> 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?
> Thanks for any help received.
>
> David
David -
When you create the CW button group, use the IDS= keyword to store
the list of button ids for the group as LONARR[]. Then later you can
restore these buttons to whatever state you like, eg.
for i=0, n_elements(bgroup_ids) - 1 do $
widget_control, bgroup_ids[i], set_button=0
Dave
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|