According to the Help file, TListView also has a TopItem property, though its behavior depends on the ViewStyle. Here's the relevant quote:
"Read TopItem to determine the first item in the list view that the user can see. TopItem reflects how far the list view has been scrolled.
TopItem is only implemented when ViewStyle is vsReport or vsList. For vsIcon and vsSmallIcon view styles, use the ViewOrigin property to determine the scroll position."
Now, if you're trying to make sure a certain item is displayed, take a look at TListItem.MakeVisible.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.