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 > [email protected] > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
