I doubt this will work with a ListView. CB messages are for ComboBoxes. There is a LVM_GETTOPINDEX but no LVM_SETTOPINDEX.
> Or, thinking about it a bit longer, perhaps I could do a
> (LastItem).MakeVisible(false) and then a SelectedItem.MakeVisible(false).
This works but due to the scroll down & up, it generates a nasty flicker. Is there a way to stop the entire ListView from updating the screen? I tried ListItems.BeginUpdate/EndUpdate but this doesn't stop the ListView scrolling.
Thanks,
Ross.
David O'Brien wrote:
See windows message CB_SETTOPINDEX. Dave.-----Original Message----- From: Ross Levis [mailto:[EMAIL PROTECTED]] Sent: Thursday, 17 October 2002 2:21 p.m. To: Multiple recipients of list delphi Subject: Re: [DUG]: Auto Scroll ListView Or, thinking about it a bit longer, perhaps I could do a (LastItem).MakeVisible(false) and then a SelectedItem.MakeVisible(false). I'll try that. Cheers, Ross. Myles Penlington wrote:Easy - you can do it already it is on the Item.makevisible(false). -----Original Message----- From: Ross Levis [mailto:[EMAIL PROTECTED]] 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/ --------------------------------------------------------------------------- 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/