LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

listbox

Solved!
Go to solution
Highlighted

I need to constantly update a listbox during runtime. I searched the forums, but I couldn't find the example that I needed.

My list box needs to have multiple rows and columns. For Example can a list box have all of the below. If so can someone give me an example of how I would do this please?

 

Peter | (some symbol) | images | LED (maybe a blinking led) | hello (Font color change)

Luke  |  <, >, #, or @  | image   | LED (maybe a blinking led) | hello (Font color change)

0 Kudos
Message 1 of 7
(1,066 Views)
Highlighted

Hi E,

 

a listbox can display text (even colored) and some additional symbols in the first column. You cannot include pictures or other indicators like LEDs.

 

So those "some symbol", "images" and "blinking LED" will be very tricky…

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 2 of 7
(1,061 Views)
Highlighted
GerdW Thanks for getting back to me so quick. Thanks for the info.
0 Kudos
Message 3 of 7
(1,059 Views)
Highlighted

Hi E,

 

you might try to use an array of clusters instead, one cluster per row…

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
Message 4 of 7
(1,056 Views)
Highlighted

ok. Do you have an example of this?

0 Kudos
Message 5 of 7
(1,053 Views)
Highlighted
Solution
Accepted by topic author *E*

Hi E,

 

create a cluster of [string for name, string for symbol, picture indicator, boolean LED, string for hello] to hold those values you have mentioned in your first post. Then create an array of those clusters.

 

You need some programming to convert your data into that data structure, but that shouldn't be the hard part… 😄

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
Message 6 of 7
(1,048 Views)
Highlighted

Great thanks for the help!

0 Kudos
Message 7 of 7
(1,044 Views)