 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Barend Ooster Guest
|
Posted: Tue Jun 29, 2004 3:15 pm Post subject: Re: Using custom TTreeNode in a custom TTreeView |
|
|
a bit late but hey
override TTreeview's CreateNode function like this:
function TMyTreeView.CreateNode: TTreeNode;
begin
Result := TMyTreeNode.Create( Items );
end;
"Vlad" <noone (AT) nowhere (DOT) com> wrote
| Quote: | Hi,
I am writing a custom TreeView component where each node would have some
additional information stored in it.
I created a descendant from TTreeNode and defined the property that will
store the custom value. Now, how do I tell my custom TreeView component to
use my custom TreeNode INSTEAD of its regular Items property of TTreeNode
type?
Any help and code samples are greatly appreciated
Vlad
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|