creating Handle during loading Form1
lazarus / 8-Other
----------------------------------------------------------------------
Borneq · 2009-12-28 20:22
I translate small test program from Delphi.
When run, it show console and hint:
[HINT} TWinControl.CreateWnd creating Handle during loading
Form1:TForm1 csDesigning=False
How to get rid this window?
(I use Lazarus-0.9.29-23301-fpc-2.3.1-20091228-win32.exe )
----------------------------------------------------------------------
Marc · 2009-12-29 09:58
which window ?
----------------------------------------------------------------------
Borneq · 2010-01-02 23:23
Console Windows
I correct this by insert if (Parent=nil) or (not
Parent.HandleAllocated) when invalidates descendent TGraphicControl.
Hint disappear but console remains. To correct it I insert in .lpi:
----------------------------------------------------------------------
zeljko · 2010-01-03 07:44
Quote from: Borneq on January 03, 2010, 12:23:43 amConsole Windows
I correct this by insert if (Parent=nil) or (not
Parent.HandleAllocated) when invalidates descendent TGraphicControl.
Hint disappear but console remains. To correct it I insert in .lpi:
hm.. you don't need to touch lpi by yourself. Just enable win32 gui
application in compiler options.
But it does not solve warning about handle creation.