[Lazarus] Grouping radio buttons
Mattias Gaertner
nc-gaertnma at netcologne.de
Mon Mar 19 20:01:09 CET 2012
On Mon, 19 Mar 2012 18:14:20 +0100
Jürgen Hestermann <juergen.hestermann at gmx.de> wrote:
> Mattias Gaertner schrieb:
> >
> >> Is it possible (and if yes, how) to group some radio buttons
> >> so that only one of each group can be selected?
> >
> > Use a TRadioGroup or put the radiobuttons on a panel.
> > Hint: A Panel can become invisible with BevelOuter=bvNone.
>
> I already read a bit about TRadioGroup. But it seems that this restricts
> the physical location of the buttons on the form or am I wrong? I would
> like to be able to place the radio buttons at arbitrary places on the form.
>
> A panel seems to be doable but it's still awkward. Now the locations of
> the radio buttons are located relative to the panel and I have to
> rearrange them all. I thought that there is some logical grouping that
> is independend from the visible location but it seems this does not exist.
Well, placing them randomly would confuse users.
In a panel you can place the radiobuttons anywhere you want.
Mattias
More information about the Lazarus
mailing list