Page 1 of 1

Change the font color of a trend object

Posted: Wed May 02, 2012 3:21 am
by amadier
Is it possible to change the font color of a trend object?

Re: Change the font color of a trend object

Posted: Wed May 02, 2012 8:36 am
by mark.monroe
Hi amadier,

Yes, you can change the font color as well as other aspects of the trend chart. Just select the trend chart and go to the Property Grid. Then look for the section that says FontColor.
Snap 2012-05-02 at 08.33.25.png
Snap 2012-05-02 at 08.33.25.png (172.02 KiB) Viewed 8330 times

Re: Change the font color of a trend object

Posted: Wed May 02, 2012 11:07 am
by amadier
I'm sorry, i don't told this but i want to change it by script.
Thanks

Re: Change the font color of a trend object

Posted: Wed May 02, 2012 12:50 pm
by mark.monroe
The only way to dynamically change the font color is using tag values. You can set the font color based on the value in a tag. In a script you could then change the value of the tag, which in turn will change the font color. To access tags in a script you do:

Code: Select all

Globals.Tags.Tag1.Value = 1
Snap 2012-05-02 at 12.46.11.png
Snap 2012-05-02 at 12.46.11.png (193.69 KiB) Viewed 8326 times