Can the above be put into this script i just did? I dabble in scripting so i am by no means anywhere near good at it. I changed my origional thinking about embedding this into the other script. i dont want to make that 1 script to complex for people to us. so what i'm going to do is make a separate script that open up with a check box. it to me seems less cluttered. var w = new Window ("dialog");
var wN = w.add ("group")
w.add ("statictext", undefined, "Die line Radius")
var mG1 = w.add ("panel {orientation: 'row'}");
var mG2 = w.add ("panel {orientation: 'column'}");
add_row (mG1);
w.show ();
function add_row (maingroup) {
var b1g, b2g, b3g, b4g;
b1g = mG1.add ("group")
b2g = mG1.add ("group")
b3g = mG1.add ("group")
b4g = mG1.add ("group")
var b1 = mG1.add ("group")
var b2 = mG1.add ("group")
var b3 = mG1.add ("group")
var b4 = mG1.add ("group")
var group = mG2.add ("group");
var buttons = w.add("group")
b1g.edit = b1.add ("statictext", undefined, "Top Left", "")
b1.edit = b1.add ("edittext", ["", "", 75, 20], mG1.children.length);
b2g.edit = b2.add ("statictext", undefined, "Bottom Left")
b2.edit = b2.add ("edittext", ["", "", 75, 20], mG1.children.length);
b3g.edit = b3.add ("statictext", undefined, "Top Right")
b3.edit = b3.add ("edittext", ["", "", 75, 20], mG1.children.length);
b4g.edit = b4.add ("statictext", undefined, "Bottom Right")
b4.edit = b4.add ("edittext", ["", "", 75, 20], mG1.children.length);
buttons.group = group.add("button",undefined,"OK")
buttons.group = group.add("button",undefined,"Cancel")
}
... View more