Change color of text in an analognumeric
Change color of text in an analognumeric
How do you change the color of the text in an analognumeric in the script?
Re: Change color of text in an analognumeric
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.
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.
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.
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
Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer