Search code examples
delphicomponentsvcl

In TButtonGroup.ButtonOptions what does adding gboGroupStyle do?


The help indicates that adding gboGroupStyle to the ButtonOptions on a TButtonGroup:

"Specifies that the buttons should inherit the group style that is set on the container."

But this explanation still leaves me lost - any ideas?


Solution

  • The gboGroupStyle option in the TButtonGroup.ButtonOptions property has nothing to do with GroupIndex as it's known e.g. from TSpeedButton.

    Setting of the gboGroupStyle option to True allows you to:

    I agree the name of this is quite misleading, but that's what I found in the source code from Delphi-XE2.