LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

listbox color

If I have a listbox and I need to indicate the items that are selected by the user. What would be a good way to do it? I have thought about coloring the item selected with a different color, but I read that only items in a multicolumn listbox can have different color. I have also thought about placing a checkmark next to the items that are selected, but there is no way of placing a checkmark string in LabView. Any suggestion? Thanks
0 Kudos
Message 1 of 7
(3,457 Views)
There are checkboxes available. You can create an array of checkboxes next to your listbox. They are located under the classic controls palette under boolean. You can also create a property node for the listbox and change the selection color and the active cell. Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 7
(3,457 Views)
Thanks, but I want the indicator to be inside the listbox, and I want multiple items to be highlighted, not just one.
0 Kudos
Message 3 of 7
(3,457 Views)
something similar... hope this helps in one way or another
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 4 of 7
(3,457 Views)
add on... you may also wanna consider grayed them out!

I have created this example here:

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=137&HOID=5065000000050000002B350100&HTHREAD=000079147&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0

cheers!
ian.f.k
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 5 of 7
(3,457 Views)
Thanks, that was helpful. Since you know a lot about listboxes, I have another question for ya. After I inserted the items into the listbox, I was unable to use the up and down key on the keyboard until I used my mouse to click on the listbox once. Is this normal? Is there something that I can do so that the user can immediately use the up and down arrow?
0 Kudos
Message 6 of 7
(3,457 Views)
You will need to "Tab" until the listbox is highlighted
before up/down keys can be used.

Alternatively, you may also set the listbox's key focus property
to TRUE (like I did).

labview@ianfung.net
11'03
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 7 of 7
(3,457 Views)