Page 1 of 1

Radio horizontal lay-out

Posted: Fri Nov 27, 2020 1:38 pm
by ilbarbax
Is the radio intended to have only vertical lay-out or there is some way to have it in horizontal?

Re: Radio horizontal lay-out

Posted: Fri Nov 27, 2020 7:17 pm
by SamuraiCrow
Try using a colgroup or an hgroup. I'm sure i've done colgroups with multiple columns.

Re: Radio horizontal lay-out

Posted: Fri Nov 27, 2020 8:34 pm
by SamuraiCrow
On second thought, that may have been while I was tinkering in C++ with wxWidgets years ago.

Re: Radio horizontal lay-out

Posted: Sat Nov 28, 2020 6:42 pm
by airsoftsoftwair
Currently, only vertical layouts are supported because AFAIR MUI only supports only vertical radio layouts...

Re: Radio horizontal lay-out

Posted: Fri Feb 26, 2021 9:33 pm
by mrupp
They now seem to support horizontal layouts as well:
Taken from https://github.com/amiga-mui/muidev/wiki/MUI_Radio:
By default, MUI will place the entries vertically below each other. But since Radio class is a subclass of Group class, you can use group layout attributes to adjust the layout to your needs, e.g. MUIA_Group_Horiz, TRUE for a horizontal radio button row or even MUIA_Group_Rows/Columns for a more fancy layout.

Re: Radio horizontal lay-out

Posted: Sat Mar 13, 2021 11:03 pm
by airsoftsoftwair
Thanks for the pointer! I'll definitely implement this because it's really useful and I didn't know that MUI supports it now.

Re: Radio horizontal lay-out

Posted: Sun Apr 25, 2021 5:55 pm
by airsoftsoftwair

Code: Select all

- New: Added Radio.Columns [I] attribute; this allows you to set the number of columns to use when laying
  out the radio buttons (defaults to 1); note that on Android, you cannot have complex radio layouts that
  use columns and rows; you can either have all radio buttons appear in one row (horizontal layout) or in
  one column (vertical layout)