BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using custom TTreeNode in a custom TTreeView

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL
View previous topic :: View next topic  
Author Message
Vlad
Guest





PostPosted: Fri May 07, 2004 11:31 am    Post subject: Using custom TTreeNode in a custom TTreeView Reply with 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
Barend Ooster
Guest





PostPosted: Tue Jun 29, 2004 7:15 pm    Post subject: Re: Using custom TTreeNode in a custom TTreeView Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.