LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reset position of scrollbar

I am using a multi-collumn listbox to display a summary of events. Each time an event occurs, a summary of the results appear as a new row. Every eight hours, I save the current summary and clear the box.
 
I have two questions:
 
firstly, is there a way to reset the position of the scrollbar when I clear the box?
 
Secondly, is there a way to have the box automatically scroll down as I add new rows?
0 Kudos
Message 1 of 5
(2,891 Views)

Sure. For both, you use the Top Left Visible Cell property Node. To set it for the bottom, get the size of the Item Names and subtract from it the number of visible rows. Bundle this together with a 0 for the column number and wire it to the property as show below. To reset, you just pass a 0 to both row and column positions.

Message Edited by Dennis Knutson on 11-14-2006 09:04 AM

Message 2 of 5
(2,886 Views)
Hi,
other users had the same question as you. Please read the following discussion forum posts:
http://forums.ni.com/ni/board/message?board.id=170&message.id=72036&requireLogin=False
http://forums.ni.com/ni/board/message?board.id=170&message.id=94397&requireLogin=False

BR,
ThSa


0 Kudos
Message 3 of 5
(2,883 Views)
I appologize. I did a search for 'reset position of scrollbar' and nothing came up. The second link you posted was perticularly helpful.
0 Kudos
Message 4 of 5
(2,872 Views)
Hi,
it doesn't matter.
To get the right results use as search string the following: "scrollbar listbox programmatically" 

BR,
ThSa
0 Kudos
Message 5 of 5
(2,863 Views)