Number of lines in a TppMemo component
Hello,
Is it possible to calculate the number of lines that fits in a TppMemo
component at run-time? That is with different font size/types, and CharWrap
turned to False. I don't want to enlarge the component, but i just want to
know which lines are visible in the memo.
Thanks in advance
Wim Looman
Is it possible to calculate the number of lines that fits in a TppMemo
component at run-time? That is with different font size/types, and CharWrap
turned to False. I don't want to enlarge the component, but i just want to
know which lines are visible in the memo.
Thanks in advance
Wim Looman
This discussion has been closed.
Comments
We are in the process of researching this capability. Thank you for your
patience.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Sorry about the delayed response. You will want to use the
TppPlainText.WordWrap procedure to determine the number of lines that fit in
a TppMemo. The final parameter of the procedure is a TStrings object named
aWrappedText. The count of the aWrappedText object after the WordWrap
procedure is finished processing is the line count of the memo.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com