Copy link to clipboard
Copied
Hey,
I have been making a few scripts in Photoshop and noticed that when I use a machine running Photoshop CC2017 the Close button is not present. This has been tested on Windows 7 and 10 machines. However, when each machines run CC2014 or 2015, the close button shows.
CC2014 version:
CC2017 version:
It seems CC2017 has totally changed the way dialogs are shown.
Does anyone have any advise on putting the "X"/Close button back on dialogs?
I know a workaround of:
var close = win.add ('button', undefined, "Close");
close.onClick = win.close();
However, this does not look great as it just adds an extra button, I would rather have the button on a dialog level.
I do not have 2017 but you could give this a try?
w = new Window ("dialog", "Example", undefined, {closeButton: true});
w.add ("statictext", undefined, "closebutton: true");
w.show ();
Copy link to clipboard
Copied
I do not have 2017 but you could give this a try?
w = new Window ("dialog", "Example", undefined, {closeButton: true});
w.add ("statictext", undefined, "closebutton: true");
w.show ();
Copy link to clipboard
Copied
Super! That worked.
Many thanks
Copy link to clipboard
Copied
SuperMerlin​
your code snippet works with PS CC 2017.0.1 as well.