delphi - How to reliably scroll Virtual TreeView to the bottom? -


A TVstreetring object with a custom node height, how to scroll through the virtual TreeView firmly (below the scrollbar goes down) ?

I tried to call tree1.FullExpand then tree1.ScrollIntoView. (Tree1.GetLast) , but it does not work.

Thank you in advance.

ScrollIntoView works well for you tree1.FocusedNode: = tree1.GetLast ;

Can you try to set the custom node height in the OnMeasureItem event? If this does not work, try setting a big value to the default of the tree, and to reduce it in the OnMeasureItem event, I noticed that the tree scrollbar runs better again.


Comments