Copy link to clipboard
Copied
another problem with windows dialog box
you can prevent the x in the top right.
What version of Photoshop and OS? On CS6 win7, everything works. For 2018 the cross is present when assigning any value for closeButton.
Bug ?!
There is no cross when it is like this.
var win = new Window ("dialog", "", undefined);
Copy link to clipboard
Copied
var d = new Window("dialog", "", undefined, {closeButton: false} );
////....
d.show();
Copy link to clipboard
Copied
r-bin I used your system but it does not work
use photoshop cc2017 on windows
this and what I have.
var win = new Window("dialog", "", undefined, {closeButton: true} );
win.cancelOk = win.add('panel', [10,495,250,540], "");
win.cancelOk.buildBtn = win.cancelOk.add('button', [10,10,230,35], 'close', {name:'ok'});
win.cancelOk.buildBtn.onClick = function(){
win.close();
}
win.show ();
Copy link to clipboard
Copied
del
Copy link to clipboard
Copied
What version of Photoshop and OS? On CS6 win7, everything works. For 2018 the cross is present when assigning any value for closeButton.
Bug ?!
There is no cross when it is like this.
var win = new Window ("dialog", "", undefined);
Copy link to clipboard
Copied
On Windows how Phoroshop ScriptUI creates Dialog frames seem to be related to Photoshop Version and OS release. Here is the same text scrip dialog on Windows 10 Photoshop CC 2014 on top of CC 2018/ CC 2014 version has the X where CC 2018 does not have the X.