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?
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.
So if you need a multiline, not-editable, with the scrollbar enabled text field, try this:
...myTextField = myWindow.add("edittext", undefined, "m
Copy link to clipboard
Copied
Or if there's a way to activate a scrollbar on statictext, that would be amazing.
Copy link to clipboard
Copied
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.
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.