Take your pick - all three are valid, depending on circumstances.
Owner = Responsible for lifetime.
Parent = Responsible for drawing.
I would normally use A or C. And use A more often than C.
Myles.
> -----Original Message-----
> From: Neven MacEwan [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, July 12, 2000 5:46 PM
> To: Multiple recipients of list delphi
> Subject: [DUG]: Dynamically Created Components
>
> Hiya All
>
> Subject for discussion - when dynamically creating a components
>
> Should I
>
> a/ Set the owner to nil and destroy it myself
> b/ Set the owner the same as the parent
> c/ Set the owner as the form
>
> TIA
>
> Regards Neven
> N.K. MacEwan B.E. E&E
> [EMAIL PROTECTED]
>
> --------------------------------------------------------------------------
> -
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz