[Lazarus] Hint about CreateWnd
zeljko
zeljko at holobit.net
Sat Mar 1 14:16:02 CET 2008
On Saturday 01 March 2008 13:53, Paul Ishenin wrote:
> zeljko wrote:
> > I'm creating an customized control, and have such hint when creating form
> > with such control:
> >
> > [HINT] TWinControl.CreateWnd creating Handle during loading Form1:TForm1
> > csDesigning=False
> >
> > Is this something bad , or I can live with it ?
>
> better to use
>
> if HandleAllocated then
> DoSomeOperationWith(Handle)
This is exact what I'm using, and got that bad HINT message.
>
>
> Handle will be created when your control become visible - before that
> you should not use Handle property.
>
> Best regards,
> Paul Ishenin.
> _______________________________________________
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
More information about the Lazarus
mailing list