Building up on Sjoerd solution to add alignment to a manipulate object :
Consider the following :
Manipulate[
Panel[Style[Row1, Bold, 20],
ImageSize -> 150, Alignment -> Center]
Panel[Style[Row2, Bold, 20],
ImageSize -> 150, Alignment -> Center],
{{Row1, {1}}, {1, 2, 3, 4, 5}, ControlType -> SetterBar,ControlPlacement -> Left},
{{Row2, {2}}, {1, 2, 3, 4, 5}, ControlType -> SetterBar,ControlPlacement -> Left}]

Is there a way to have the panel on top of each other aligned with the corresponding SetterBar ?
Would something like this work?
Manipulate[
Grid[{{SetterBar[Dynamic[Row1], {1, 2, 3, 4, 5}],
Panel[Style[Row1, Bold, 20], ImageSize -> 150,
Alignment -> Center] }, {SetterBar[
Dynamic[Row2], {1, 2, 3, 4, 5}],
Panel[Style[Row2, Bold, 20], ImageSize -> 150,
Alignment -> Center]}}], {{Row1, {1}},
ControlType -> None}, {{Row2, {2}}, ControlType -> None}]

This technically moves the controls into the body of the manipulate, and prevents the actual controls from showing up where they normally would.
DynamicModule[{Row1 = 1, Row2 = 2},
Manipulate[
Grid[
{
{
Control[{Row1, {1, 2, 3, 4, 5}}],
Panel[Style[Row1, Bold, 20], ImageSize -> 150, Alignment -> Center]
},
{
Control[{Row2, {1, 2, 3, 4, 5}}],
Panel[Style[Row2, Bold, 20], ImageSize -> 150, Alignment -> Center]}
}
]
]
]

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With