On my Form I have 4 buttons on a Row. The only way I can get them to show as below is to space them by using some statictext add("statictext", undefined, "").preferredSize.width = 320; Is this the normal way of doing something like this ? with (myForm.add("group")) { orientation = "row"; alignment = "right"; margins = 0; spacing = 10; var button3 = add("button", undefined, "About"); var button4 = add("button", undefined, "Help"); button4.enabled=false; add("statictext", undefined, "").preferredSize.width = 320; var button1 = add("button", undefined, "OK"); var button2 = add("button", undefined, "Cancel"); }
... View more