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 

Control has no parent Window -at Design Time?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.components.writing
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Mon Apr 03, 2006 12:03 pm    Post subject: Control has no parent Window -at Design Time? Reply with quote



I have descended a TreeView component from a TCustomTreeView. I have
not overriden the create method. If I merely place the new TreeView
on a form, and try to save the project, I get the message "Component
"TreeViewxxx" has no parent window. This is without even trying to
run the application. If I run it, I get the same message when the
Treeview component gets to it's destroy method and tries to traverse
the tree nodes. I have tried setting the control's parent property to
the panel that contains it, (which is a standard Delphi panel, so it
should have it's parent property set) but to no avail. Can anyone
help?
Back to top
Guest






PostPosted: Mon Apr 03, 2006 1:04 pm    Post subject: Re: Control has no parent Window -at Design Time? Reply with quote



Part of the problem seems to be caused because the panel that is the
paretn TWinControl of the Tree component is getting destroyed before
the Tree Component, and isn't calling the Tree's destroy method. By
the time the Tree's destroy is called, it's parent property is nil. Sad
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.components.writing 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.