Skip to main content
bagonterman
Inspiring
January 18, 2013
Question

UI with text stacked on graphic not working on pc

  • January 18, 2013
  • 1 reply
  • 584 views

I am wondering if anyone has had this experience. My UI is working on the mac side in both CS4 and CS5. But when I am running it in CS4 on the PC side windows XP the text does not show up. I am going to include a little snippet. Thanks

var myIDinfo=new Window ("palette", "Image Calculator");

    myIDinfo.graphics.backgroundColor = myIDinfo.graphics.newBrush (myIDinfo.graphics.BrushType.SOLID_COLOR, [0.7255, 0.1020, 0],.5);

    myIDinfo.margins = 12;

    var myBoarder=myIDinfo.add("group");

    myBoarder.graphics.backgroundColor = myBoarder.graphics.newBrush (myBoarder.graphics.BrushType.SOLID_COLOR, [0.55, 0.7, 0.3],.5);

    myBoarder.margins = 3;

    var myPanel=myBoarder.add("group");

    myPanel.alignChildren = "right";

    myPanel.size = [200,200];

   

    var myGraph=myPanel.add('image', undefined, myImage);

    myPanel.graphics.backgroundColor = myPanel.graphics.newBrush (myPanel.graphics.BrushType.SOLID_COLOR, [0.1, 0.1, 0.1]);

    myGraph.alignment=["center","center"];

    myGraph.size=[150,150];

   

     var myStatGroup =  myPanel.add ("group");

    myCountText=myStatGroup.add ("statictext", undefined, "000");

    myCountText.graphics.font = "dialog:35";

    myCountText.graphics.foregroundColor = myCountText.graphics.newPen (myCountText.graphics.PenType.SOLID_COLOR, [0.7255, 0.1020, 0], 1);

    myStatGroup.alignment=["center","center"];

    myPanel.orientation="colomn";

This topic has been closed for replies.

1 reply

bagonterman
Inspiring
January 21, 2013

I am not able at this moment to correct this problem. I deleted the graphic from the UI on the PC side and the text shows up just fine. I guess on the pc side the graphic covers it up but I am not sure why. On mac its fine. for now I will do without my graphic on the PC side. If anyone understand this at all you are welcome to post similar experiences. BG.