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

Scriptui change text size in Dialog top bar?

Engaged ,
Jun 26, 2017 Jun 26, 2017

Copy link to clipboard

Copied

In Scriptui, I'd like to increase text size of TITLE in Dialog top bar?

This is what I've tired so far:

var dlg = new Window('dialog', scriptName + '  ' + scriptVersion, undefined, undefined);

dlg.alignment = "center";

dlg.graphics.font = "Arial-Bold: 40";

Searched the few docs available with no luck.

Thanks,

RONC

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

Community Expert , Jun 26, 2017 Jun 26, 2017

IMO the title always exists.

The third question

var scriptName = "YourScriptName";

var scriptVersion = "0.01";

var dlg = new Window('dialog');

dlg.graphics.backgroundColor = dlg.graphics.newBrush (dlg.graphics.BrushType.SOLID_COLOR, [1, 0, 0], 0);

dlg.alignment = "center";

dlgTxt = dlg.add("statictext",  undefined, scriptName + '  ' + scriptVersion);

dlgTxt.graphics.font = "Verdana:40";

dlgTxt2 = dlg.add("statictext",  undefined, scriptName + '  ' + scriptVersion);

dlgTxt2.graphics.font = "Arial-Bold:40";

...

Votes

Translate

Translate
Adobe
Community Expert ,
Jun 26, 2017 Jun 26, 2017

Copy link to clipboard

Copied

Which version of scriptUI are you referring to CC 2015 ScriptUI version or some prior version. You may not be able to change its size only set  a string of text.

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
Engaged ,
Jun 26, 2017 Jun 26, 2017

Copy link to clipboard

Copied

JJMack,

Thanks again for a quick and helpful response.

I have ESK 4.5.5 and SUI 6.2.2.   What docs I viewed where on web so do not know level.  I had not seen the list you included. What is URL of the doc you viewed?  How does SUI 6.2.2 relate to your doc?

RONC

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 ,
Jun 26, 2017 Jun 26, 2017

Copy link to clipboard

Copied

Hi rechmbrs​,

var scriptName = "YourScriptName";

var scriptVersion = "0.01";

var dlg = new Window('dialog', scriptName + '  ' + scriptVersion, undefined, undefined);

dlg.alignment = "center";

dlg.graphics.font = "Arial-Bold:40";   //  -------------------------  !!! does not works in title !!!

dlgTxt = dlg.add("statictext",  undefined, scriptName + '  ' + scriptVersion);

dlgTxt.graphics.font = "Verdana:40";

dlgTxt2 = dlg.add("statictext",  undefined, scriptName + '  ' + scriptVersion);

dlgTxt2.graphics.font = "Arial-Bold:40";

dlg.show ();

Have fun

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
Engaged ,
Jun 26, 2017 Jun 26, 2017

Copy link to clipboard

Copied

Thanks for the response.

I have the show much later in the dialog building.

As I see this, it will write the text not in the title bar but in the

normal area of the dialog. How do I change background color around the

statictext and also hide the just the title bar? Not hide the border.

RONC

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 ,
Jun 26, 2017 Jun 26, 2017

Copy link to clipboard

Copied

IMO the title always exists.

The third question

var scriptName = "YourScriptName";

var scriptVersion = "0.01";

var dlg = new Window('dialog');

dlg.graphics.backgroundColor = dlg.graphics.newBrush (dlg.graphics.BrushType.SOLID_COLOR, [1, 0, 0], 0);

dlg.alignment = "center";

dlgTxt = dlg.add("statictext",  undefined, scriptName + '  ' + scriptVersion);

dlgTxt.graphics.font = "Verdana:40";

dlgTxt2 = dlg.add("statictext",  undefined, scriptName + '  ' + scriptVersion);

dlgTxt2.graphics.font = "Arial-Bold:40";

dlg.show ();

Have fun

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
Engaged ,
Jun 26, 2017 Jun 26, 2017

Copy link to clipboard

Copied

piXXXXXXel,

Thanks.  I like to control things in my code but can't here.

I did make it Italic using BoldItalic so the title is different.

Gave you a couple more X's.  The way people name their kids today!!

RONC

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 ,
Jun 26, 2017 Jun 26, 2017

Copy link to clipboard

Copied

LATEST

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