LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I change the color of a string contol when using a vi reference to that control

I know that I can change the bg color of the string control by simply creating a property node and using the text/bg color. But... I need to open a vi reference and find my control due to the number of controls used in my app. I can't seem access the text/bg color when doing this. SEE EXAMPLE VI.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 1 of 3
(2,914 Views)
Hello BJD,

The control reference you are using is a general one, and therefore you need to typecast the control reference to a more specific class. To do this use the function "To More Specific Class" that can be found in the application control palette. This will expose all the properties of a specific type of control. See the attached vi.

Regards

Gerardo Garcia
National Instruments
Applications Engineer
Message 2 of 3
(2,914 Views)
Thank you. That works great.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 3 of 3
(2,914 Views)