hi,
What should I do in order to make the script responds like the script that attaches to the gif?
{
var myWin = buildUI(this);
if (myWin != null && myWin instanceof Window) {
myWin.show();
}
function buildUI (thisObject) {
if (thisObject instanceof Panel) {
var myWin = thisObject;
} else {
var myWin = new Window ("palette", undefined, undefined, {resizeable:true});
}
if (myWin != null ) {
var res =
"Group { \
alignment: ['fill','fill'],\
alignChildren: ['fill','fill'],\
orientation:'column' ,\
spacing:0,\
AllBtms:Panel{\
alignment: ['fill','fill'],\
alignChildren: ['fill','fill'],\
orientation:'Row',\
spacing:0,\
aBtn:Button{text:'a',alignment: ['left','top'],preferredSize:[30,30]}\
bBtn:Button{text:'b',alignment: ['left','top'],preferredSize:[30,30]}\
cBtn:Button{text:'c',alignment: ['left','top'],preferredSize:[30,30]}\
dBtn:Button{text:'d',alignment: ['left','top'],preferredSize:[30,30]}\
fBtn :Button{text:'f',alignment: ['left','top'],preferredSize:[30,30]}\
gBtn:Button{text:'g',alignment: ['left','top'],preferredSize:[30,30]}\
hBtn:Button{text:'h',alignment: ['left','top'],preferredSize:[30,30]}\
}\
}";//GroupRes
myWin.grp = myWin.add(res);
myWin.layout.layout(true);
myWin.layout.resize();
//======================================================================================= =====
//======================================================================================= =====
myWin.onResizing = myWin.onRize = function () {
this.layout.resize();
}
} //if (myWin != null )
return myWin;
} //function buildUI (thisObject)
}