Board index » cppbuilder » Radiobuttons and groupbox

Radiobuttons and groupbox


2004-07-06 07:37:18 AM
cppbuilder66
If i have four radiobuttons in a groupbox, how can i tell which
one of them is checked?
I would like to use a switch to load the state of the button
back when displaying the radiobuttons again.
Thanks in advance.
 
 

Re:Radiobuttons and groupbox

"Tester" < XXXX@XXXXX.COM >wrote in message
Quote
If i have four radiobuttons in a groupbox, how can i
tell which one of them is checked?
When using TGroupBox, you have to check them directly one at a time, ie:
if( RadioButton1->Checked )
// do something ...
else if( RadioButton2->Checked )
// do something else ...
// etc...
Quote
I would like to use a switch to load the state of the
button back when displaying the radiobuttons again.
Any particular reason not to use TRadioGroup instead? Then you could use
its ItemIndex property.
Gambit