Change color of text in an analognumeric

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
Tompa
Posts: 1
Joined: Thu Oct 06, 2011 1:22 am

Change color of text in an analognumeric

Post by Tompa »

How do you change the color of the text in an analognumeric in the script?

User avatar
Ron L.
Posts: 214
Joined: Fri Jul 15, 2011 3:21 pm

Re: Change color of text in an analognumeric

Post by Ron L. »

Create a tag with no address. For this example, we'll call the tag "ColorIdx".

Select the Analog Numeric.
Go to
"Dyanamics" tab
-> "General"
-> "Font Color"
-> "Color Interval Converter" in drop down list
Configure the different colors and press OK.
dynamic_font_color.JPG
dynamic_font_color.JPG (40.31 KiB) Viewed 8197 times
For the example pictured, if I want to change the color of the Analog Numeric text, I would change the value of "ColorIdx". The code would look like this.

Code: Select all

Globals.Tags.ColorIdx.Value = 2;
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer

Post Reply