Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Change color of text in an analognumeric
PostPosted: Thu Oct 06, 2011 1:25 am 

Joined: Thu Oct 06, 2011 1:22 am
Posts: 1

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


 Profile  
 
 Post subject: Re: Change color of text in an analognumeric
PostPosted: Thu Oct 06, 2011 9:46 am 
User avatar

Joined: Fri Jul 15, 2011 3:21 pm
Posts: 214

Offline
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.

Attachment:
dynamic_font_color.JPG
dynamic_font_color.JPG [ 40.31 KiB | Viewed 2522 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:
Globals.Tags.ColorIdx.Value = 2;

_________________
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: