I'm trying to work with tabbed panel. After some time workin on it I don't know why it works while I don't define bounds for my window. When I define the bounds, nothing appears in the window...
It's normal? I don't really understand why that happens...
Code: Select all
var w = new Window("dialog", "Title");
w.bounds = [100,100,500,500];
w.tp=w.add("tabbedpanel");
w.tp.t1 = w.tp.add("tab",[25,25,375,375], 'Joe');
w.tp.t1.alignChildren="left";
//w.tp.t1.preferredSize=[390,390];
w.tp.t1.e = w.tp.t1.add("edittext", [15,10,105,30],"Text");
w.tp.t2 = w.tp.add("tab",[25,25,375,375], 'Joe2');
w.tp.t2.alignChildren="left";
//w.tp.t2.preferredSize=[390,390];
w.tp.t2.e = w.tp.t2.add("edittext", [0,0,105,30],"Text2");
w.show();