Aaron,

> Whilst I haven't tried it this doesn't solve the problem since the program
> flow is such that we may wish to see the tree empty between the clear
> and the next repopulate.

OK, what about this code:

SendMessage (Treeview.handle, TVM_DELETEITEM, 0, Longint(TVI_ROOT));

...

TreeView.Items.add(nil,'I''m invisible');

-----------------------------------------------------
Dennis Chuah, BE (Hons) [mailto:[EMAIL PROTECTED]]
Manager, Product Development
Contec Data Systems Ltd. [http://www.contecds.com]
tel: +64-3-3580060 ext-775 fax: +64-3-3588045



---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to