• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Close button missing CC2017

Community Beginner ,
Aug 01, 2017 Aug 01, 2017

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:

Capture2.PNG

CC2017 version:

Capture.PNG

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.

TOPICS
Actions and scripting

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , Aug 01, 2017 Aug 01, 2017

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 ();

Votes

Translate

Translate
Adobe
Guide ,
Aug 01, 2017 Aug 01, 2017

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 ();

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 01, 2017 Aug 01, 2017

Copy link to clipboard

Copied

Super! That worked.

Many thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 01, 2017 Aug 01, 2017

Copy link to clipboard

Copied

LATEST

SuperMerlin​

your code snippet works with PS CC 2017.0.1 as well.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines