Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

handle properties of buttons in RadioGroup?

Status
Not open for further replies.

leopardo

Technical User
May 14, 2005
18
AR
Is it possible to handle the properties of the radio buttons which belong to a RadioGroup?, I mean for example: if button '0' is checked then button '1' must be disabled.
I love your comments.

leopardo [bigglasses]
 
easy,

you have the Buttons[Index] property (At least in my version which is D2005).

you can disable the second radiobutton like this :

RadioGroup1.Buttons[1].Enabled:=False;

Cheers,
Daddy

--------------------------------------
What You See Is What You Get
 
Surely D2005 is cool !.

But by now I must to deal with Delphi 2.0 and that code you give me is rejected by the compiler, besides, such property is not in the property list.

Thanks anyway, whosrdaddy.
 
I give to me a self-help.

I solve the trouble using panels and disabling the border, putting each radio button in different panels, this way gives a look-like independent radio buttons feel.
[bigglasses]
 
OK.

using Controls.[index], the same result is possible.

leopardo.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top