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

suppress x windows

Advocate ,
Nov 02, 2017 Nov 02, 2017

Copy link to clipboard

Copied

another problem with windows dialog box

you can prevent the x in the top right.

Schermata 2017-11-02 alle 12.37.57.png

TOPICS
Actions and scripting

Views

1.2K

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

People's Champ , Nov 02, 2017 Nov 02, 2017

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

Votes

Translate

Translate
Adobe
People's Champ ,
Nov 02, 2017 Nov 02, 2017

Copy link to clipboard

Copied

var d = new Window("dialog", "", undefined, {closeButton: false} );

////....

d.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
Advocate ,
Nov 02, 2017 Nov 02, 2017

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

Schermata 2017-11-02 alle 13.57.28.png

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
People's Champ ,
Nov 02, 2017 Nov 02, 2017

Copy link to clipboard

Copied

del

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
People's Champ ,
Nov 02, 2017 Nov 02, 2017

Copy link to clipboard

Copied

LATEST

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

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 ,
Nov 02, 2017 Nov 02, 2017

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.

Capture.jpg

JJMack

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