Scrolling listview untill the selected item is in sight



Hi,

Using Delphi 6 trying to set the scrollbar of a listview
at the right position so that a selected item is in sight of the user.
Just like a listbox, i do listbox1.itemindex:=22; and the component das the rest.
Hope that i am clear enough.

Greetings Rene
--
Very addictive !!
http://easyfactuur.com/jawbreaker
.



Relevant Pages

  • RE: listview vertical scrollbar width
    ... ListView control encapsulates Windows build-in List-View to leverage its ... Windows has two kinds of scroll bars. ... You may use Spy++ to view ListView control structure and its windows style ... considered the non-client area of ListView, so this WS_VSCROLL scrollbar is ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: listview scrollbar range not correct
    ... Unfortunately it doesn't look like a ListView ... has a DrawMode property or OnDrawItem and OnMeasureItem events. ... > set the size of each element of the list, so the scrollbar gets sized ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Getting rid of horizontal scroll bar on ListView
    ... checkboxes to choose the ... horizontal scrollbars ... ... the program is executing - sometimes gets rid of the scrollbar, ... form pop up with the ListView without horizontal scroll bars? ...
    (microsoft.public.vb.general.discussion)
  • Re: Listview shows extra Gridlines
    ... The listview is size to show two rows of data, with the vertical scrollbar enable. ... the horizontal grid lines does not get painted. ... I know that I am able to drawheader and drawitem, but is there a fix I can use. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Listview shows extra Gridlines
    ... I have a Listview in Detail mode with three columns. ... size to show two rows of data, with the vertical scrollbar enable. ... the horizontal grid lines does not get painted. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)