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

suppress x windows

Advocate ,
Nov 02, 2017 Nov 02, 2017

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
1.5K
Translate
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);

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

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

////....

d.show();

Translate
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

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

Translate
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

del

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

Translate
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

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
Translate
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