How to set two radiobuttons in one group and two in another group?

Ivan Prodanov picture Ivan Prodanov · Jul 26, 2009 · Viewed 22.3k times · Source

I have total 4 radiobuttons on my form,I want to set the first two buttons in one group and the second two in another group so that I can check one from the first group and one from the second group.

Right now,if I check one from the first group,the one from the second group becomes unchecked.

I've always wondered how to do this and I believe now's the time to figure this out. :)

Answer

mghie picture mghie · Jul 26, 2009

To quote from the trusted Delphi 5 help:

By default, all radio buttons that are directly contained in the same windowed control container, such as a TRadioGroup or TPanel, are grouped. For example, two radio buttons on a form can be checked at the same time only if they are contained in separate containers, such as two different group boxes.