Board index » delphi » TListView scrolling

TListView scrolling

Hi All,

I have a TListView with about 100 items.  The user has the capability
to search the list for a matching text value.  How do I make the list
scroll so that when an item is found it becomes visible?  I've tried
setting the ItemIndex and the Selected properties.  These both select
the item properly but have no affect on the positioning of the item
within the visible area.  I also tried setting the TopItem property
which, according to the help should scroll the list, but the de{*word*81}
says it's read only.

Thanks for any help,
Steve

 

Re:TListView scrolling


In article <1t8h2v8rn9r5t1bl224vad3n1r3iu95...@4ax.com>, Steve Harp
wrote:

Quote
> I have a TListView with about 100 items.  The user has the capability
> to search the list for a matching text value.  How do I make the list
> scroll so that when an item is found it becomes visible?  

TListitem has a MakeVisible method for this purpose.

--
Peter Below (TeamB)  
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be

Re:TListView scrolling


Perfect!  I'll name my next 5 kids after you.  Do you think a girl
named TeamB would be Ok?

On Sat, 18 Jan 2003 11:20:33 +0100, "Peter Below (TeamB)"

Quote
<100113.1...@compuXXserve.com> wrote:

croll so that when an item is found it becomes visible?  
Quote

>TListitem has a MakeVisible method for this purpose.

Re:TListView scrolling


In article <jm1j2vkrhcsb1qnvoftqk5063lmpch4...@4ax.com>, Steve Harp
wrote:

Quote
> Perfect!  I'll name my next 5 kids after you.  Do you think a girl
> named TeamB would be Ok?

<shudder>

--
Peter Below (TeamB)  
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be

Other Threads