8

With VCL, we had a TRadioGroup class with an Items property you could modify at design time. With Firemonkey, we only have the TRadioButton class.

From what I understand, if you add objects of type TRadioButton as children to other container objects (e.g. TPanel, TGroupBox), these containers will effectively act like the VCL TRadioGroup objects.

However, these individual radio buttons seem to behave as if they are all children of the same parent. If you select a radio button in group A, and then select a radio button in group B, the radio button in group A is deselected.

How can I get radio buttons in one container object to not deselect radio buttons in other container objects?

Here's an example of my form design: enter image description here

ardnew
  • 2,028
  • 20
  • 29
  • Perhaps next time you could just capture the image of the form you're designing, instead of the entire IDE? It would allow the image to be easier to see without the extraneous project manager/object inspector/etc. – Ken White Jun 21 '12 at 22:23
  • @KenWhite I was trying to emphasize the radio buttons were children of their container parents (which you can't tell by only looking at the form) – ardnew Jun 22 '12 at 02:00
  • It seems you could still crop it somewhat to make it easier to see. I upvoted your question. It was just a suggestion. :-) – Ken White Jun 22 '12 at 02:01

1 Answers1

17

Set the GroupName properties of the buttons. Radio buttons with the same group name will act as a separate group.

Rob Kennedy
  • 161,384
  • 21
  • 275
  • 467