<p style="padding:0 0 0 0; margin:0 0 0 0;">Hi,</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">you can do measurement in overriden CreateWnd, Canvas already exists there.</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">Blaazen </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">______________________________________________________________<br />
> Od: Petr Kristan <petr.kristan@epos.cz><br />
> Komu: <lazarus@lists.lazarus.freepascal.org><br />
> Datum: 07.04.2014 11:03<br />
> Předmět: [Lazarus] Custom GraphicsControl - need Canvas to set Heightoutside OnPaint<br />
></p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">Hi.<br />
<br />
I'am creating an graphics control and I need Canvas to set control<br />
Height. But I can draw (access to Canvas) only in OnPaint event.<br />
<br />
How to solve this problem?<br />
<br />
Thanks<br />
Petr<br />
<br />
-- <br />
Petr Kristan<br />
.<br />
EPOS PRO s.r.o., Smilova 333, 530 02 Pardubice<br />
tel: +420 461101401 Czech Republic (Eastern Europe)<br />
fax: +420 461101481<br />
<br />
--<br />
_______________________________________________<br />
Lazarus mailing list<br />
Lazarus@lists.lazarus.freepascal.org<br />
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a></p>