LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Does anyone know of a way to highlight, or even change the background color of, one item in an array?

I have an array of words that a user can scroll through and I would like to be able to show which word the user is currently on.

Thanks,

Joe
Frustrated Student
0 Kudos
Message 1 of 4
(2,895 Views)
Hi Joe,

use an Listbox to highlight the selected entry. You can find it on the
list & tables palette. Just wire you array of strings to the created
property node itemnames. If the user selects now an element it will be
shown with a background you can specify.

Henrik


JoeGraham schrieb:
>
> Does anyone know of a way to highlight, or even change the background
> color of, one item in an array?
>
> I have an array of words that a user can scroll through and I would
> like to be able to show which word the user is currently on.
>
> Thanks,
>
> Joe
> Frustrated Student
0 Kudos
Message 2 of 4
(2,895 Views)
There's no way to highlight a specific item in an array.
But in your case you can use a listbox control/indicator, note that you can insert in it your array strings using the attribute nodes (property).
With a listbox it is very easy to highlight a specific item.
0 Kudos
Message 3 of 4
(2,895 Views)
If you want the 2d array look, you can use table instead of listbox. In table you can also specify the background color of a cell.

Jared
0 Kudos
Message 4 of 4
(2,895 Views)