>OK, what about this code:
>SendMessage (Treeview.handle, TVM_DELETEITEM, 0, Longint(TVI_ROOT));


Bummer is this confirms that borland won't be fixing the problem next
release... it's a treeview fault...

The sendmessage clears the tree alright but still causes the redraw as it empties
which we need to avoid - users don't like waiting quite that long...

if you imbed the send message in an beginupdate...endupdate... the redrawing
stops... same problem as initially... fastest clear we've found so far (that doesn't
exhibit the problems) is

tv.Items.BeginUpdate;
tv.Items.Clear;
tv.Items.Add(nil,' ');
tv.Items.EndUpdate;
tv.Items.Clear;

--
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

Reply via email to