Sign in Join

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

Mailing lists / lazarus / 2000-08

Font property ?

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Unknown author

Hi

In the TestAll app I try to change Font.Color, Font.Name, Font.Size and Font.Style
with no luck. I have looked at the TFont code and it looks like it should work.
I've tried it on TLabel, TButton and TMemo.
Should it work ?

Chris

Reply by email

Marc Weustink
to Unknown author
Show quoted text 8 lines
Hi In the TestAll app I try to change Font.Color, Font.Name, Font.Size and Font.Style with no luck. I have looked at the TFont code and it looks like it should work. I've tried it on TLabel, TButton and TMemo. Should it work ?

Think so. I the editor atleast Font.Color and Font.Name are successfull used. While stating this the editor is ownerdrawn.... TLabel, TButton and TMemo not.

Ah, the TControl.FFont.OnChange handler isn't set so changes to the font aren't noticed and handled.

Marc

Reply by email