Recent

Author Topic: TTextMetric under MacOSX  (Read 2906 times)

justanotherjay

  • New Member
  • *
  • Posts: 13
TTextMetric under MacOSX
« on: December 22, 2011, 03:39:55 pm »
Hello,

i've an issue with porting a windows application made with lazarus to mac os.
i am using a function which resize a frame ... inside those function i have an object of the type TTextMetric which gets his information from an WinAPI Call "GetTextMetrics" .. i cant find anything similar to that in the LCLIntf. Somebody knows a solution to that problem?

Actually i only need the charset information of the OS .. like the averange char width.

greetings

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: TTextMetric under MacOSX
« Reply #1 on: December 22, 2011, 04:27:18 pm »
Maybe you are using an old version of Lazarus because here in mine I can clearly see LCLIntf.GetTextMetrics. You can also try InterfaceBase.Widgetset.GetTextMetrics which is the same thing.

justanotherjay

  • New Member
  • *
  • Posts: 13
Re: TTextMetric under MacOSX
« Reply #2 on: December 22, 2011, 04:37:01 pm »
oh the InterfaceBase.Widgetset thing works for me.

Thank you very much.

 

TinyPortal © 2005-2018