Board index » delphi » TListView - Scrolling.

TListView - Scrolling.

Howdy Delphians

Using D3 - WindowsNT - Service Pack3, When clearing the TListView (using
Items.Clear) the items scroll as they are being deleted. This is slow and
not desirable, and wish to have the same effect as the Explorer.exe
ListView.

Please Help! WES
pas...@provide.net

 

Re:TListView - Scrolling.


William,

    I have not tried this with a ListView, but give it a shot..

    TreeView.Perform(WM_SETREDRAW,0,0) ; // turn it off

    TreeView.Items.Clear ;

    TreeView.Perform(WM_SETREDRAW,1,0) ; // turn it on

Re:TListView - Scrolling.


William,

maybe this helps:

TListView.Items.BeginUpdate;
try
  // action on items
finally
  TListView.Items.EndUpdate;
end;

Joachim Meyer (J...@basys-bremen.de)
BASYS EDV-Systeme GmbH

Other Threads