Here's an annoying bug
procedure MakeAnInvisibleTreeNode;
begin
Treeview.Items.BegniUpdate;
TreeView.Items.Clear;
TreeView.Items.endupdate;
TreeView.Items.add(nil,'I''m invisible');
end;
Add a second node and the treeview wakes up and draws both...
note that the first node is in the tree - you can click it, you just
can't look at it ;)
Is this a known bug?
The following fixes (read treats the symptoms) it...
procedure MakeAVisibleTreeNode;
begin
Treeview.Items.BegniUpdate;
TreeView.Items.Clear;
TreeView.Items.add(nil,''); {temporary node}
TreeView.Items.endupdate;
TreeView.Items.Clear;
TreeView.Items.add(nil,'I''m visible now');
end;
NB I haven't checked if this occurs with an already empty tree
only one with mega nodes in it...
Comments
--
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