Recent

Author Topic: TMemo.Font property does not work in Win32  (Read 4785 times)

RadSurfer

  • Newbie
  • Posts: 4
TMemo.Font property does not work in Win32
« on: March 24, 2005, 08:02:02 pm »
Lazarus 0.9.6, 0.9.7
Whenever I try to set the Font of a TMemo, sometimes it might display for
me while editing TStrings, but at runtime it ALWAYS defaults back to
whatever it used originally...

Does anyone know of a workaround for this?

Why would  Font.Height =   -16   ? Where is that value coming from?
The proper name of the selected Font apparently appears.

If you check BugTracker you'll notice I have already posted this problem there.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2649
TMemo.Font property does not work in Win32
« Reply #1 on: March 25, 2005, 02:39:29 pm »
A font has 2 poperties to set its height/size. Both are dependent. So setting the Size "modifies" the Height and setting the Height "modifies" the Size. To indicate that you set one of them, the other will become negative.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018