//////////////////////////////////////////////////////////////////////////////
//graphics does not work in Bridge
//Works fine in ExtendScript Toolkit and Photoshop
//////////////////////////////////////////////////////////////////////////////
var w = new Window ("dialog");
var s = w.add ("statictext", undefined, "Static");
var e = w.add ("edittext", undefined, "Edit");
var b = w.add ("button", undefined, "Cancel");
w.graphics.backgroundColor = w.graphics.newBrush (w.graphics.BrushType.SOLID_COLOR, [0.5, 0.0, 0.0]);
s.graphics.font = ScriptUI.newFont ("Helvetica", "Bold", 30);
s.graphics.foregroundColor = s.graphics.newPen (w.graphics.PenType.SOLID_COLOR, [0.7, 0.7, 0.7], 1);
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]);
b.graphics.font = ScriptUI.newFont ("Minion Pro", "Italic", 30);
w.show();
Tested on Widows 7 64bit.
Thanks for the response, the platform is a PC running Windows 7.
This is not a video card problem it is a code problem with Bridge.
If you copy and paste the code into a new window of ExtendScript toolkit then run the code with the target set for ExtendScript Toolkit CS6 or Photoshop it will display the UI correctley, now run the code with a target of Bridge and the graphics of the UI do not work.
This is a major bug.
North America
Europe, Middle East and Africa
Asia Pacific