Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Jul : Unexpected destruction of treeview nodes
| Subject: | Unexpected destruction of treeview nodes |
| Posted by: | "Glynn Owen" (glynnmow..@hotmail.com) |
| Date: | 1 Jul 2005 11:01:49 |
I have a TreeView on one TTabSheet and some options that control how it
operates on a second TTabSheet. One of those options is the TabStop
property of the TreeView. When I change that property and attempt to
return to tab where the treeview is being displayed, I find that the
treeview has been rebuilt during the tabsheet switch. The nodes of the
treeview are destroyed and then re-created. The text of each node is
preserved, but auxiliary data that is attached to each node is lost. I
don't mean the standard Data property of the node - I'm not using that.
I'm using a type of treenode that I wrote myself which has some
additional fields. Those additional fields become NIL when the tree
gets rebuilt.
Is there some way to avoid this automatic rebuild of the tree? Any
other suggestions about how to work around this issue?
TIA, Glynn
--
"Education is the ability to listen to almost anything without losing
your temper."
--Robert Frost