Board index » delphi » How to auto scroll in TListView ?

How to auto scroll in TListView ?

Hi there,

 i use TListView in my application which set to vsReport. How i going to
scroll the item, and make the last item being selected when an item add to
it ?

Thanks very much as the problem trouble me one whole day !

Regards,
Ang Lik Huar

 

Re:How to auto scroll in TListView ?


Use TListView.Selected.MakeVisible() to ensure the selected item is visible
on the form.

Dan

"Ang Lik Huar" <an...@asistech.com.sg> wrote in message
news:3db93167@newsgroups.borland.com...

Quote
> Hi there,

>  i use TListView in my application which set to vsReport. How i going to
> scroll the item, and make the last item being selected when an item add to
> it ?

> Thanks very much as the problem trouble me one whole day !

> Regards,
> Ang Lik Huar

Re:How to auto scroll in TListView ?


Hi Dan Palley,

  altoguht i implement the code in my apploication, i still couldn't get it scroll automatically ?

  Regards,
  Ang Lik Huar

Quote
"Dan Palley" <d...@trams.com> wrote:
>Use TListView.Selected.MakeVisible() to ensure the selected item is visible
>on the form.

>Dan

>"Ang Lik Huar" <an...@asistech.com.sg> wrote in message
>news:3db93167@newsgroups.borland.com...
>> Hi there,

>>  i use TListView in my application which set to vsReport. How i going to
>> scroll the item, and make the last item being selected when an item add to
>> it ?

>> Thanks very much as the problem trouble me one whole day !

>> Regards,
>> Ang Lik Huar

Re:How to auto scroll in TListView ?


Hi Dan,

  Sorry, the things is work now !! :)

  Thanks very much

Quote
"Dan Palley" <d...@trams.com> wrote:
>Use TListView.Selected.MakeVisible() to ensure the selected item is visible
>on the form.

>Dan

>"Ang Lik Huar" <an...@asistech.com.sg> wrote in message
>news:3db93167@newsgroups.borland.com...
>> Hi there,

>>  i use TListView in my application which set to vsReport. How i going to
>> scroll the item, and make the last item being selected when an item add to
>> it ?

>> Thanks very much as the problem trouble me one whole day !

>> Regards,
>> Ang Lik Huar

Other Threads