You could try
try
listview.items.beginupdate;
(remove everything and reload it)
finally
listview.items.endupdate;
// Try this
Listview.Invalidate;
end;
Chris
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Nic Wise
Sent: Tuesday, 8 February 2000 12:08
To: Multiple recipients of list delphi
Subject: [DUG]: TListView and drawing columns.
Bah, damn windows controls :)
I have a TListView in report mode, and when I do a bulk update:
try
listview.items.beginupdate;
(remove everything and reload it)
finally
listview.items.endupdate;
end;
It NEVER redraws the columns! If I click on one of them, that one comes
back, if I move a window over it, it redraws the bit under the window, if I
get rid of the beginupdate/endupdate thing, it redraws them OK (but the rest
of the update is slow and looks UGLY).
Ideas, anyone???? Am I missing a listview.items.repaintyourselfproperly type
call????
Nic.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz