Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Canvas.Font.Name := 'Marlett'

Status
Not open for further replies.

rcloutie

Programmer
May 26, 2005
164
CA
Hello All,

I've built a VCL based on TStringGrid, and implemented the protected event DrawCell from within I set Canvas.Font.Name := 'Marlett' to indicate the current sort column/order (char 5=DESC and 6=ASC).

Sometimes it work and sometimes not... The problem seems to be linked to the Marlett font (I tried Courier New and it works fine all the time...)

Any ideas???


Thank you in advance,

Rej Cloutier
 
No more problem:
In the constructor, I've added ParentFont := False;
and all works fine...???...

Hope this will helps someone else...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top