09-09-2009 12:01 PM
Is it possible to change the foreground and background color of individual array elements?
According the the link below it is not. But that was 4 years ago and I'm wondering if it's possible with the newer version of Labview.
http://forums.ni.com/ni/board/message?board.id=170&message.id=125484&query.id=927250#M125484
I have been unable to fidn a way to do it using Labview 8.2.1.
Thanks,
Adam
Solved! Go to Solution.
09-09-2009 12:03 PM
09-09-2009 12:19 PM
No, you can't. Arrays have to share pretty much everything except the actual data value. As was mentioned, you could use a second indicator to indicate your values of interest. If you just want to change the BG color, you can make an array of color boxes that is behind the array of numbers. Make the background of the numbers (and the array container transparent. You can make it "look" like the BG of the numbers is changing. The FG color would not be as easy.
Another (perhaps better) method is to use a table or listbox to display your array. These allow you to change the colors of the cells. You'll have to convert your array to an array of strings. If your array is small, the hit on processing won't be significant. But if you have REALLY big arrays, you'll notice significant time spent updating the table/listbox.
09-09-2009 12:51 PM
09-09-2009 01:01 PM - edited 09-09-2009 01:07 PM
09-10-2009 11:41 AM