Sorry, I do not understand what do you really want (because of my bad english) Try to change the bg color of the panel in the dialog box by clicking on button? Something like this? // ScriptUI graphics update issue // resource string var winRes = "dialog { \ text: 'ScriptUI Graphics test', \ margins: 15, \ alignChildren: 'row', \ \ canvas: Panel { \ preferredSize: [200, 200], \ properties: {borderStyle: 'black'} , \ }, \ buttonsGroup: Group{ \ cancelButton: Button { text: 'Cancel', properties:{name:'cancel'} }, \ tryButton: Button { text: 'Try', properties:{name:'try'},size: [40,24], alignment:['right', 'center'] }, \ }, \ }" // Window var win = new Window(winRes); // define the graphic property win.canvas.graphics.backgroundColor = win.canvas.graphics.newBrush (win.canvas.graphics.BrushType.SOLID_COLOR, [1,0,0],1); win.buttonsGroup.tryButton.onClick = function() { // change the graphic background property by click on Button [try] win.canvas.graphics.backgroundColor = win.canvas.graphics.newBrush (win.canvas.graphics.BrushType.SOLID_COLOR, [0,0,1],1); } win.show() ???
... View more