Page 1 of 1

Change color of text in an analognumeric

Posted: Thu Oct 06, 2011 1:25 am
by Tompa
How do you change the color of the text in an analognumeric in the script?

Re: Change color of text in an analognumeric

Posted: Thu Oct 06, 2011 9:46 am
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 8200 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;