Thanks Myles, but not quite what I was after. I want a particular item to be the first visible item on the listview. I believe MakeVisible just scrolls enough to fit it somewhere in the listview. I presume the procedure will have to use: TopItem, Scroll, and Canvas.TextHeight.

Cheers,
Ross.

Myles Penlington wrote:

Easy - you can do it already it is on the Item.makevisible(false).


-----Original Message-----
From: Ross Levis [mailto:ross@;stationplaylist.com]
Sent: Thursday, 17 October 2002 1:53 p.m.
To: Multiple recipients of list delphi
Subject: [DUG]: Auto Scroll ListView


Does anyone have any code to scroll a ListView so that TopItem = a particular item (or item index). It is a shame that TopItem is readonly.

Thanks,
Ross.

---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/



---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to