TIP: Click on subject to list as thread! ANSI
echo: delphi
to: BRYAN SMITH
from: GARY WEINFURTHER
date: 1998-01-04 16:05:00
subject: TPageControl - who owns what ?

Bryan Smith mentioned this to All:
 BS> If I use labels to walk up the chain of ownership, e.g. label1.Caption 
=
 BS> Image1.parent.name ; then Delphi tells me that the chain of ownership is
 BS>    Image1-Tabsheet3-PageControl1-Form1.
That's not the chain of "ownership", it's the chain of "parentship".  The 
form is the owner of all controls, unless you explicitly tell Delphi 
otherwise.
The "parent" is the container of a control.  The "owner" is the control that 
destroys the "ownee".
                                ...Gary
--- GoldED 2.41
---------------
* Origin: The Flying Circus BBS. (1:2410/905)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.