[Lazarus] Hint about CreateWnd

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Mar 1 16:07:12 CET 2008


On Sat, 1 Mar 2008 15:44:55 +0100
zeljko <zeljko at holobit.net> wrote:

> On Saturday 01 March 2008 14:52, Mattias Gaertner wrote:
> > Replace
> >   DoSomeOperationWith(Handle)
> > with
> >   DoSomeOperationThatNeedsAHandle;
> >
> > For example any Canvas operation needs a handle.
> 
> tnx, I've found Loaded() satisfies my needs - for runtime, but
> Loaded() isnt' called during design time ? so ... what to call here ?

I hope, you mean 'override' not to 'call'.
Loaded must *only* be called TReader.

Loaded is called during designtime too. Otherwise you found a
bug.

Mattias



More information about the Lazarus mailing list