How does one make a Scriptui dialog or palette resizeable?
I would like to make a Scriptui window user resizeable. I've tried by adding ,{resizeable: true} into the new window line as well as trying dialog.resizeable = true;
See my attempts:
// DIALOG
// ======
var dialog = new Window("dialog"); // , {resizeable:true}
dialog.text = "TABS test";
dialog.orientation = "column";
dialog.alignChildren = ["center", "top"];
dialog.spacing = 0;
dialog.margins = 2;
dialog.resizeable = true;
// TPANEL1
// =======
var tpanel1 = dialog.add("tabbedpanel", undefined, undefined, { name: "tpanel1" });
tpanel1.alignChildren = "fill";
tpanel1.preferredSize.width = 240;
tpanel1.spacing = 10;
tpanel1.margins = 0;
// TAB1
// ====
var tab1 = tpanel1.add("tab", undefined, undefined, { name: "tab1" });
tab1.text = "Tab1";
tab1.orientation = "row";
tab1.alignChildren = ["left", "top"];
tab1.spacing = 0;
tab1.margins = 0;
var button1 = tab1.add("button", undefined, undefined, { name: "button1" });
button1.text = "Button1";
var button2 = tab1.add("button", undefined, undefined, { name: "button2" });
button2.text = "Button2";
// TAB2
// ====
var tab2 = tpanel1.add("tab", undefined, undefined, { name: "tab2" });
tab2.text = "Tab2";
tab2.orientation = "column";
tab2.alignChildren = ["left", "top"];
tab2.spacing = 0;
tab2.margins = 0;
var button3 = tab2.add("button", undefined, undefined, { name: "button3" });
button3.text = "Button3";
var button4 = tab2.add("button", undefined, undefined, { name: "button4" });
button4.text = "Button4";
// TPANEL1
// =======
tpanel1.selection = tab1;
dialog.show();
I don't see the little dotted triangle at the lower right corner as one does in windows 10.
RONC
