LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to programatically add one item at a time to a listbox control?

I am using labView 6.1. I want each new item that is added to the bottom of the listbox to arrive smoothly without the listbox scrollbar taking the selected item back to the top of the listbox. If I update the array that feeds the property node, the litsbox always scrolls back to the top. I would like the items in the listbox to be updating as the program runs, with the ability to select any item in the listbox being present.
0 Kudos
Message 1 of 4
(2,690 Views)
Hi,
There is a property "Top Row" in the list of Listbox properties.
This property specifies the row of the list which is currently at the top of the listbox.
You just need to rewrite this property each time when you update the list.

Good luck.

Oleg Chutko.
0 Kudos
Message 2 of 4
(2,690 Views)
Create a property node for the list box.

Select;
"Top Row"

This value allows you to specify the top row that is visable.

Is this what you are after?

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 4
(2,690 Views)
Yes, this is the solution I needed. Thank you all for your help.
0 Kudos
Message 4 of 4
(2,690 Views)