LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting text colour to individual elements within an array

Hi all!!

I have an array of paths and what I would like to do is to go through all the active elements and individually set the text colour. I suppose what I am really asking is how do I access the individual porperties of the element within an array.

At the moment I am able to

Elements[0-n] set textColour to Red

What I want is

for i = 0 to n
Elements[i] set textColour to something

nice
0 Kudos
Message 1 of 3
(3,003 Views)
You can't change properties of individual array elements.
The closest thing you can do is use a table instead of the array, where you can set the active cell and change its BG and FG color (not the text). Also, a table is text only, so you will have to convert your paths.

___________________
Try to take over the world!
Message 2 of 3
(3,000 Views)
Hi Mr nice.

tst is 100% correct in what he said. The table he suggested is probably the most direct approach.

If you really need the ability to use path navigation functionality, then an array of clusters that use a color box to control the BACKGROUND color of the path control may help,
OR,
a cluster of path controls may be useful.

These two approaches are illustrated in the attached VI (LV7.0).

I hope this helps,

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 3
(2,987 Views)