LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

textcolor change of a single element in an array of clusters

hi, right now I rewrite some code for a more flexible approach in the future.

 

One special VI causes me some serious headache right now, I need to display a flexible number of versions which will be determined on the fly with the hardware avaible. Till now it were only some controls and a fixed amount of versions to expect.

 

To adress this issue I created an array of cluster in which each cluster stands for all data of the version. No problem works just fine.

The main problem is, that previously new versions (different from the last value) would be bright red while the others remain black.

 

Something an array of cluster doesnt support:(

 

I could overlay the text with a picture control and "paint" the text in the different colours as a workaround, but I would prefer not to.

Do you know any other more elegant way to deal with this issue?

 

0 Kudos
Message 1 of 5
(3,187 Views)

Elements of an array can only differ in value, not in cosmetic properties. You can add a colorbox indicator to the cluster and place it in the back of transparent controls, for example.

0 Kudos
Message 2 of 5
(3,177 Views)

Unfortunatly the specifications says the text has to change its colour not the backgroundSmiley Frustrated

 

So I guess I'll go with the picture indicator method unless somebody has another idea.

0 Kudos
Message 3 of 5
(3,173 Views)

Create two transparent string indicators on top of each other, one with a different font color. Make one an empty string and the other the desired value. Swap the values to get the "other" display.

Message 4 of 5
(3,168 Views)

Sweet! Didnt tought of that, this really helped me outSmiley LOL

0 Kudos
Message 5 of 5
(3,152 Views)