Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-03

Change font of a TPaintBox

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner
to Xiangrong Fang
Show quoted text 6 lines
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

Reply by email