-
1. Re: [CS4 JS] Script UI refreshing statictext from function
Bob Stucky Apr 16, 2010 9:55 AM (in response to Skempy)Skempy,
I think this is what you want. Works in ESTK.
Regards
Bob
// just to make it fun...
makeArray = function() {
var array = new Array();
var a = parseInt( Math.random() * 20 ) + 1;
for ( var i = 0; i < a; i++ ) {
array.push( parseInt( Math.random() * 100 ) );
}
return array;
}var w = new Window("palette","Open Neptune Jobs",undefined);
w.addList = new Array();
w.orientation = "column";
w.Refresh = w.add("group",undefined);
w.Refresh.Button3 = w.Refresh.add('button',undefined,"Refresh", {name:"refresh"});
w.Refresh.Button3.onClick = function () {
var myArray = makeArray();
if ( this.window.myGroup ) {
this.window.remove( this.window.myGroup );
}
w.myGroup = w.add( "group" );
w.myGroup.orientation = "column";
for( var i = 0; i < myArray.length; i++ ) {
w.myGroup.add( "statictext", undefined, myArray[ i ] );
}
this.window.layout.layout( true );}
w.frameLocation = [ 100, 100 ];
w.show (); -
2. Re: [CS4 JS] Script UI refreshing statictext from function
Steven.. Apr 16, 2010 10:20 AM (in response to Bob Stucky)Bob (Adobe Engineer) wrote:
// just to make it fun...
Really nice !!
Thanks
-
3. Re: [CS4 JS] Script UI refreshing statictext from function
Harbs. Apr 17, 2010 10:48 PM (in response to Steven..)Steven.. wrote:
Bob (Adobe Engineer) wrote:
// just to make it fun...
Really nice !!
Thanks
Yup!
Wow this forum is really wild! <VBG>




