How do I determine the height of a line of text in a TMemo programmatically?

前端 未结 4 1783
小蘑菇
小蘑菇 2020-12-22 01:21

I\'ve got a TMemo, and I want to always make it exactly high enough to display the number of lines it contains. Unfortunately, I don\'t quite know how to calculate that. I

4条回答
  •  难免孤独
    2020-12-22 02:05

    I originally suggested looing at the "Lines" TStrings list member in TMemo.

    Instead, please look at the "Font" member in the parent class, TCustomEdit.

    'Hope that helps .. PS

提交回复
热议问题