LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control Scrolling in Listbox

I was able to get it working by reading the main while loop count with a reference in each of the sub vis (Mit force read and Mit serial read and write) and then feeding the reference into the row control of the Top Left Visible property node.  This way every time data was added to the lsitbox (each iteration of the while loop) the scroll bar would scroll down by 1 row as well.

Thanks again for your help.

Kenny
Kenny

0 Kudos
Message 11 of 12
(603 Views)
I recently needed to do this and found this old discussion about the topic while looking for an already-completed VI that met my needs. I didn't quite find it so I went ahead and assembled my own and have posted it here so that anyone who might find themselves in a similar situation could at least see if the work I did would save them some effort. The attached file (LV v7.1.1) contains a test VI, a polymorphic shell VI and two worker VIs. One of the workers is for listboxes which output a scalar value and one is for listboxes that output an array value. Just give the worker VI a control reference to the listbox that needs to have its selection brought into view (& optionally centered) and the worker VI takes it from there.
Message 12 of 12
(586 Views)