[Lazarus] Change font of a TPaintBox

Xiangrong Fang xrfang at gmail.com
Thu Mar 7 02:54:44 CET 2013


Hi All,

I am writing some text on a TPaintBox.Canvas.  I found that if I set
canvas.font on FormShow, it does NOT work, I have to set font inside the
OnPaint procedure of the canvas. Why the font information is not persisted
when it is set?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130307/a300aed1/attachment-0002.html>


More information about the Lazarus mailing list