ScriptUI

Creating anything

1
//creating a dialog/palette window
2
var box = new Window('dialog', "title here");
3
​
4
// creating a button
5
box.add('button',undefined, "Close", {name:'title here'});
6
​
7
​
8
// creating static text
9
​
10
// creating a group
11
​
12
// Creating a panel
13
​
14
// Creating
Copied!

Making dialog box resizable

Formatting size, alignment

1
"group { \
2
orientation:'column', alignment:['fill','top'], \
3
header: Group { \
4
alignment:['fill','top'], \
5
title: StaticText { text:'" + rd_KindaSortaData.scriptName + "', alignment:['fill','center'] }, \
6
help: Button { text:'" + rd_KindaSorta_localize(rd_KindaSortaData.strHelp) +"', maximumSize:[30,20], alignment:['right','center'] }, \
7
}, \
Copied!
​
Last modified 1yr ago