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

Home » Public Forums » archive » Re: Help: Retrieve the state of radio button
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: Help: Retrieve the state of radio button [message #15031] Mon, 19 April 1999 00:00
Pavel Romashkin is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: X Windows Graphics under RH Linux 5.2
Next Topic: Re: How to check if a file is indeed a NetCDF file?

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

Current Time: Wed Oct 08 18:55:34 PDT 2025

Total time taken to generate the page: 0.00461 seconds