07-05-2012 09:23 AM
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?
07-05-2012 11:14 AM - edited 07-05-2012 11:14 AM
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.
07-05-2012 11:17 AM
Unfortunatly the specifications says the text has to change its colour not the background
So I guess I'll go with the picture indicator method unless somebody has another idea.
07-05-2012 11:36 AM
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.
07-06-2012 01:07 AM
Sweet! Didnt tought of that, this really helped me out