[Lazarus] Hint about CreateWnd
Paul Ishenin
webpirat at mail.ru
Sat Mar 1 13:53:03 CET 2008
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)
Handle will be created when your control become visible - before that
you should not use Handle property.
Best regards,
Paul Ishenin.
More information about the Lazarus
mailing list