 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Mon Apr 03, 2006 12:03 pm Post subject: Control has no parent Window -at Design Time? |
|
|
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
|
Posted: Mon Apr 03, 2006 1:04 pm Post subject: Re: Control has no parent Window -at Design Time? |
|
|
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.  |
|
| 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
|
|