Book a Demo

Author Topic: Change fill color of Screen with shape scripts  (Read 3755 times)

McBie

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Change fill color of Screen with shape scripts
« on: July 31, 2009, 10:16:48 pm »
Hello,
 I 'd like to change the fill color of the element "Screen"  depending on a tagged value. Therefore I wrote the following shape script:
Code: [Select]
shape main{

if (HasTag("EPDMPhase","1_A"))
      {
            setFillColor(169,248,167);
            drawnativeShape();
      
      }else{
            drawnativeShape();
      }
}
This works in principle.
Unfortunately the fill colour I set in the script is only visible in the two "buttons" drawn in the right upper corner of the screen element.
The main area is unchanged.
There seems to be a difference between the "Background color" one can set in the  "Default appearance" dialogue and the fill color used in the script, at least for Screens. For Class it works as I would expect.

Anybody knows how to achieve the colour change for screens ?

Thank you very much!
« Last Edit: July 31, 2009, 10:17:09 pm by marcoAtsparx »