On 04/07/2014 11:01 AM, Petr Kristan wrote:
Hi.

I'am creating an graphics control and I need Canvas to set control
Height. But I can draw (access to Canvas) only in OnPaint event.

How to solve this problem?

You need to set height of control by calculating text height out of paint event ? I'm using TBitmap for such measurements.
Create bitmap, assign control font to bmp canvas, measure.

z.


--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to