var win = new Window ("dialog", "Window 1", [150, 150, 1040, 880]); // WIN 1
var win2 = new Window("dialog", "Window 2", [150, 150, 600, 250]); // WIN 2
win2_pnl = win2.add("panel", [10, 10, 440, 100], "Move slider around");
resetButton2 = win2_pnl.add("button", [25, 10, 150, 40], "Back to Full view");
var tpanel = win.add ("tabbedpanel", [5, 5, 650, 680]);
var general = tpanel.add ("tab", [5, 5, 400, 300], "1, 2"); //// TAB
var win_pnl = general.add ("panel", [0, 0, 500, 500], "1"); //// PANEL
var ys1 = 5; var ys2 = 30; var xxx = 20; var yyy = 10; var xx2 = 230; var yy2 = 45;
var dfg = 8;
label_CC = win_pnl.add("edittext", [xxx+220, 19+dfg, 280, 38+dfg], "100");
var slideCC = win_pnl.add("slider", [xxx, 25, xx2, 50], 0, -200, 200); slideCC.value = 100;
var images = tpanel.add ("tab", undefined, "3, 4"); //// TAB
images.alignChildren = "fill";
var imwin_pnl = images.add ("panel", undefined, "Options"); //// PANEL
imwin_pnl.dtd_decl = imwin_pnl.add ("checkbox", undefined, "123");
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// BUTTONS
//var buttons = win.add ("group");
button1 = win.add ("button", [50, 200, 150, 230], "Compact view", {name: "ok"});
button2 = win.add ("button", [250, 200, 300, 230], "Cancel");
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
button1.onClick = function(){
win.close(1);
}
if ( win.show()==1 ) win2.show();