MatthiasM wrote:
ColumnLayout is a subclass of DialogLayout. If you want you can easily add it to another DialogLayout, but then you need to add it to it's groups like any other widget.
ok, thanks! This seems to work!
Code:
ColumnLayout cl = new ColumnLayout();
cl.setTheme("SoundSettings"); // ref=dialoglayout
cl.addRow("label", "adjust", "label", "enable");
Columns col = cl.getColumns("label", "adjuster", "label", "enable");
cl.addRow(col).add(labelMusicVolume).add(musicVolumeAdjuster).add(labelMusicDisable).add(musicDisableCheckBox);
cl.addRow(col).add(labelSoundVolume).add(soundVolumeAdjuster).add(labelSoundDisable).add(soundDisableCheckBox);
setHorizontalGroup(createSequentialGroup(cl));
setVerticalGroup(createParallelGroup(cl));
edit:
It seems to work the same if this is commented or not:
Code:
//cl.addRow("label", "adjust", "label", "enable");
What exactly does that do?
edit 2:
How do I center or put these fields closer to right border? I'd also like to make vertical gaps smaller:
default:

would like (bad photoshop):
