AGAIN: Help: Retrieve the state of radio button [message #15104] |
Wed, 21 April 1999 00:00  |
VU KHAC Tri
Messages: 25 Registered: March 1999
|
Junior Member |
|
|
> Hi forks,
>
> I implement a dialog with radio buttons, but I don't know to get their
> states (checked or not).
> Could you give me an advice ?
> Thank you for help,
> Tri.
Dear folks,
I put the above message, then receive some responses. The solution in
these responses based on supposing I defined the button group by
CW_BGROUP.
In fact, IDLBuilder construct this group of buttons by the following
way:
w = widget_base(...., /NONEXCLUSIVE) ; for group of non-exclusive
buttons
b1 = widget_button(w,....)
b2 = widget_button(w,....)
I tried all the keywords of widget_info and widget_control, but cannot
retrieve the state of buttons.
Does anyone know why ?
Thanks for help.
Tri.
|
|
|
Re: AGAIN: Help: Retrieve the state of radio button [message #15171 is a reply to message #15104] |
Thu, 22 April 1999 00:00  |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
Tri VU KHAC wrote:
>
>> Hi forks,
>>
>> I implement a dialog with radio buttons, but I don't know to get their
>
>> states (checked or not).
>> Could you give me an advice ?
>> Thank you for help,
>> Tri.
>
> Dear folks,
> I put the above message, then receive some responses. The solution in
> these responses based on supposing I defined the button group by
> CW_BGROUP.
> In fact, IDLBuilder construct this group of buttons by the following
> way:
>
> w = widget_base(...., /NONEXCLUSIVE) ; for group of non-exclusive
> buttons
> b1 = widget_button(w,....)
> b2 = widget_button(w,....)
> I tried all the keywords of widget_info and widget_control, but cannot
> retrieve the state of buttons.
> Does anyone know why ?
> Thanks for help.
> Tri.
Tri -
When I want to keep track of something like this, I store it as
an array variable within my "state" info structure, and I keep this
variable updated in the event handler that processes events from
these buttons. Email me offline if you want details.
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|