Change the font color of a trend object

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
amadier
Posts: 2
Joined: Wed May 02, 2012 3:17 am

Change the font color of a trend object

Post by amadier »

Is it possible to change the font color of a trend object?

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Change the font color of a trend object

Post 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 8324 times
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

amadier
Posts: 2
Joined: Wed May 02, 2012 3:17 am

Re: Change the font color of a trend object

Post by amadier »

I'm sorry, i don't told this but i want to change it by script.
Thanks

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Change the font color of a trend object

Post 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 8320 times
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Post Reply