My button is floating on top of the list box. I want it to sit right under the list box.
I will be adding more buttons and just want to know why this is not working.
If anybody can assist on this will be grateful.
var objDlg = new Window ("dialog", "パネル", [0,0,300,150]);
//var objDlg = new Window ("dialog", "Abas", [0,0,0,0]);
objDlgorientation = 'column';
// w.margins = 5;
// w.spacing = 10;
objDlg.alignChildren = ['fill', 'fill'];
objDlg.size = [380, 520]
var tpanel = objDlg.add ("tabbedpanel" ,[10,10,0,0],);
var general = tpanel.add ("tab", [0,0,0,0], "Color");
var general1 = tpanel.add ("tab", [0,0,0,0], "general");
var general2 = tpanel.add ("tab", [0,0,0,0], "playstation");
var general3 = tpanel.add ("tab", [0,0,0,0], "xbox 360");
var general4 = tpanel.add ("tab", [0,0,0,0], "xbox 360");
var general5 = tpanel.add ("tab", [0,0,0,0], "xbox 360");
var general6 = tpanel.add ("tab", [0,0,0,0], "xbox 360");
var general7 = tpanel.add ("tab", [0,0,0,0], "xbox 360");
var listBoxxc = general.add("listbox", [10,30,180,110], []);
listBoxxc.selection = 0;
listBoxxc.size = [340, 200];
listBoxxc.add("item", "Create Angle Control");
listBoxxc.add("item", "Create Color Control");
listBoxxc.add("item", "Create Checkbox Control");
listBoxxc.add("item", "Create Layer Control");
listBoxxc.add("item", "Create Point Control");
listBoxxc.add("item", "Create Slider Control");
testBtn = general.add( "button", [40,90,110,110], "Test" );
tpanel.size = [360,300];
objDlg.center();
objDlg.show();
I believe that you will need to group the Listbox and the Button separately. My code is a little different to yours, but this works: