[Lazarus] Change font of a TPaintBox

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Mar 7 07:19:52 CET 2013


On Thu, 7 Mar 2013 09:54:44 +0800
Xiangrong Fang <xrfang at gmail.com> wrote:

> 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?

Have you set ParentFont:=false?

Mattias




More information about the Lazarus mailing list