5 Replies Latest reply: Apr 5, 2012 5:05 PM by Pattie F RSS

    Bridge BUG : ExtendScript UI not drawing correctly

    Paul Riggott Community Member
      //////////////////////////////////////////////////////////////////////////////
      //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.