Radio horizontal lay-out
Radio horizontal lay-out
Is the radio intended to have only vertical lay-out or there is some way to have it in horizontal?
-
- Posts: 475
- Joined: Fri May 15, 2015 5:15 pm
- Location: Waterville, Minnesota USA
Re: Radio horizontal lay-out
Try using a colgroup or an hgroup. I'm sure i've done colgroups with multiple columns.
I'm on registered MorphOS using FlowStudio.
-
- Posts: 475
- Joined: Fri May 15, 2015 5:15 pm
- Location: Waterville, Minnesota USA
Re: Radio horizontal lay-out
On second thought, that may have been while I was tinkering in C++ with wxWidgets years ago.
I'm on registered MorphOS using FlowStudio.
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Radio horizontal lay-out
Currently, only vertical layouts are supported because AFAIR MUI only supports only vertical radio layouts...
Re: Radio horizontal lay-out
They now seem to support horizontal layouts as well:
Taken from https://github.com/amiga-mui/muidev/wiki/MUI_Radio:
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.
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Radio horizontal lay-out
Thanks for the pointer! I'll definitely implement this because it's really useful and I didn't know that MUI supports it now.
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Radio horizontal lay-out
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)