On Mon, 14 Jan 2008, Giuliano Colla wrote:
> Patrick Shepherd ha scritto:
> > Sorry for such a simple question but I'm just getting back to programming
> > (as a hobby). Haven't done much since TP5.
> >
> > Anyway, if I create a component eg TPanel during runtime and set it's owner
> > property to a form, do I have to write code to free the panel or is there
> > already code in the forms destructor to free owned classes?
> >
> AFAIK the form destructor takes care freeing all children components.
This is correct. Any owned components of a TComponent are freed when the
component is freed.
Michael.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives