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

ScriptUI Edittext font/color

Participant ,
Jul 03, 2019 Jul 03, 2019

Copy link to clipboard

Copied

I've used the code in the doc:

e.graphics.font = ScriptUI.newFont ("Letter Gothic Std", "Bold", 30);

e.graphics.foregroundColor = e.graphics.newPen (e.graphics.PenType.SOLID_COLOR, [1, 0, 0], 1);

e.graphics.backgroundColor = e.graphics.newBrush (e.graphics.BrushType.SOLID_COLOR, [0.5, 0.5, 0.5]);

But I can't change the font or color of my edittext scriptui element. It works fine with statictext, though. Help?

TOPICS
Scripting

Views

1.5K

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

Explorer , Jul 06, 2019 Jul 06, 2019

Fonts and colors in the ScriptUI elements are a hit and miss. Adobe has limited some of these functions from CC and on.

I don't think you will be able to change much. Take a look at this post.

Concerning the scrollbar, there is no way to add a scrollbar to a static text. You can however use the following options on a edittext field.

  • multiline
  • readonly
  • scrolling

So if you need a multiline, not-editable, with the scrollbar enabled text field, try this:

myTextField = myWindow.add("edittext", undefined, "m

...

Votes

Translate

Translate
Participant ,
Jul 03, 2019 Jul 03, 2019

Copy link to clipboard

Copied

Or if there's a way to activate a scrollbar on statictext, that would be amazing.

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
Explorer ,
Jul 06, 2019 Jul 06, 2019

Copy link to clipboard

Copied

LATEST

Fonts and colors in the ScriptUI elements are a hit and miss. Adobe has limited some of these functions from CC and on.

I don't think you will be able to change much. Take a look at this post.

Concerning the scrollbar, there is no way to add a scrollbar to a static text. You can however use the following options on a edittext field.

  • multiline
  • readonly
  • scrolling

So if you need a multiline, not-editable, with the scrollbar enabled text field, try this:

myTextField = myWindow.add("edittext", undefined, "my text goes here \n in multiple lines", {multiline:true, readonly: true, scrolling: true});

Cheers.

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