> >Bah, damn windows controls :)
> >I have a TListView in report mode, and when I do a bulk update:.......
>
> I seem to remember a problem with this in Delphi 4.0 once, end update wasn't
> working in some cases.
> Aaron - do you recall this one? Im trying to remember what we did to fix
> it...
There are a number of bugs in the updating processes of TListView and TTreeview.
If I remember correctly a Begin endUpdate wrapping up the .SubItems changes
helped matters both in performance and presentation. There is no solution for the
invisible root-item bug in the Treeview though (I'll find the code example that causes
it so that someone with D5 can check the behaviour)...
We have considerable code handling report layout multicolumn ListViews that perform
the following sequence of instructions successfully...
LV.Items.BeginUpdate;
LV.Items.Clear;
with LV.Items.Add do begin
Caption := 'Spam';
with SubItems do begin
BeginUpdate;
Add('Spam2');
Add('Spam3');
Add('Spam4');
Add('Spam5');
EndUpdate;
end;
end;
LV.Items.EndUpdate;
I believe there are display issues if the Clear is not called in the above for
Listviews with existing items...
--
Aaron Scott-Boddendijk
Jump Productions
(07) 838-3371 Voice
(07) 838-3372 Fax
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz