![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1198208/image.png)
Button group with horizontal alignment
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Simple question: How can I create a button group with buttons aligned horizontally right next to, and not vertically below each other? I would like to create a group of radio button, and could not find any properties - like "Alignment" - that might do the trick.
DEFAULT BEHAVIOR DESIRED FUNCTION / BEHAVIOR
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1186668/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1186673/image.png)
0 Kommentare
Antworten (1)
Nikhilesh
am 18 Nov. 2022
Hi Florian,
Although there is no alignment settings in the panel you can always select them and arrange as per your need.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1198208/image.png)
2 Kommentare
Goncalo
am 25 Jul. 2024
Bearbeitet: Goncalo
am 25 Jul. 2024
I find button groups quite useless, basically it just gives you some pre-implemented functionality to manage button clicks but other than that it is super limiting. I always implement my button group so that I take advantage of gridlayouts.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!