Skip to main content
Steven__
Inspiring
February 26, 2009
Question

ScriptUI Graphics

  • February 26, 2009
  • 11 replies
  • 2266 views
The foreground and background color in ScriptUI.graphics seem to be a little confusing.

on all controls you can set foreground color, but it doesn't actually work on window, button, radiobutton, checkbox, treeview, group

backgroundColor can not be set for button,iconbutton,radiobutton, checkbox, treeview

didn't check everything, but is there a way around this. Also I'm testing CS3, has this changed cs4

Thanks
This topic is closed to new replies. Start a new post to keep the conversation going.

11 replies

Steven__
Steven__Author
Inspiring
March 1, 2009
xbytor Try This. Place Button In Group With ToolButton Style. Set Foreground Color Of Group, Button Will Be Transparent And Show Color Of Group Behind It.
Steven__
Steven__Author
Inspiring
February 27, 2009
The Foreground Color User A Pen Not A Brush So Inherintly It Can't Be Used Only To Color Text
Steven__
Steven__Author
Inspiring
February 27, 2009
I Can't Get Any Text On Icon Button In CS3, So There Isn't Really Anything To Paint With Foreground Pen.
Known Participant
February 27, 2009
Steven_F._Bryant@adobeforums.com wrote:
> I Can't Get Any Text On Icon Button In CS3, So There Isn't Really Anything To Paint With Foreground Pen.

I just wanted to fill it with color. Since you can't set the background either,
I'm out of luck.

-X
Steven__
Steven__Author
Inspiring
February 26, 2009
In CS4 Editbox Got Background Color And Checkbox, RadioButton And IconButton Got Working Foreground Color But Button And Tree View Still Doesn't Work
Known Participant
February 27, 2009
Can you confirm foreground color work for iconbutton does not work in CS3?
I've had to go to drastic measures because I never could get it to work.

-X
Steven__
Steven__Author
Inspiring
February 26, 2009
Its In The Tools Guide And The OMV
Steven__
Steven__Author
Inspiring
February 26, 2009
And I Have Not Been Able To Find A Control That Displays Disabled Background Or Disabled Foreground Color
Known Participant
February 26, 2009
Steven_F._Bryant@adobeforums.com wrote:
> And I Have Not Been Able To Find A Control That Displays Disabled Background Or Disabled Foreground Color

You have documentation for features that don't exist.

Consider yourself lucky!

Usually we don't have documentation for features that do exist.

-X
Steven__
Steven__Author
Inspiring
February 26, 2009
Running In The ESTK 2 Only The Following Controls Allow Setting Background Color. The Window, Panel, Group, List Box, Drop Down View. The Rest Return A Message "Cannot Set Background Color Property For This Element Type".
February 26, 2009
In CS3, the behavior you're seeing is host-app specific.

You can do pretty much anything with foreground/background colors in ESTK and Bridge, for example, but not in InDesign.

I have done a thorough test in IDCS4 yet, but the foreground and background color stuff does seem to work.

Bob