Re: When to create TCustomControl's child controls?




"Riaan" <rmoll@xxxxxxxxxxxx> wrote in message
news:1130404489.821258.246800@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

> I'd been so used to creating VCL components that are dropped on the
> form (with static child controls in them) that I had forgotten the
> principles of why my code was misbehaving.
>
> while true do WriteLn('Riaan is an idiot');

Not a chance ;). One of my real frustrations with the VCL design is the
non-orthagonal handling of dynamic and streamed components. Both are
created, but not the same way and Loaded is only called in the later case.
Other than the constructor there is no hook that I'm aware of which is
called by both creation types.


.