Hi,
the TListView on windows seems to be really slow, the attached test project demonstrates this. Especially when the columns have set AuztoSize to true the performance when inserting items drops to slow motion. On GTK2 it is always lightening fast .
I have experimented with BeginUpdate/EndUpdate but it won't help much, I can still see the column headers slowly increase in size while the list is being filled. The only thing that seems to help a bit is setting Visible to False during the update.
I have found many postings on forums complaining about the same problem in Delphi, does this mean the problem is in the underlying native windows control itself or is there anything that can be done about it in the LCL?
Btw: The attached demo also shows a problem with autosize not respecting the MinWidth property and also the column headers are not included in the auto-size calculation. Is the whole autosize calculation done by the native control itself or can it be impoved in the LCL?
Bernd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TListView-Slowness.zip
Type: application/zip
Size: 2637 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100808/6b1856a6/attachment.zip>
