Re: Help: Retrieve the state of radio button [message #15031] |
Mon, 19 April 1999 00:00 |
Pavel Romashkin
Messages: 166 Registered: April 1999
|
Senior Member |
|
|
One way to go will be using RSI's CW_BGROUP. Calling WIDGET_CONTROL on
an exclusive ("radio") button group will return the index of the
currently set button. Another way is to make your event handling
procedure set the UVALUE of exclusive base to the index of selected
button when a button is clicked, and retrieve that UVALUE any time you
need it.
If you are talking about checkboxes (since you use the word "checked" in
your question) I recommend using an INT or LONG as UVALUE of your
nonexclusive base and setting that UVALUE bitwise from the event handling
procedure. I have an example code if you are interested.
A Fork.
> 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.
|
|
|