 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Vlad Guest
|
Posted: Fri May 07, 2004 11:31 am Post subject: Using custom TTreeNode in a custom TTreeView |
|
|
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 |
|
 |
Barend Ooster Guest
|
Posted: Tue Jun 29, 2004 7: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 in message
news:4XGmc.19803$urx.18962 (AT) news04 (DOT) bloor.is.net.cable.rogers.com...
| 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
|
|