Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Number of lines in a TppMemo component

edited June 2003 in General
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

Comments

  • edited June 2003
    Wim,

    We are in the process of researching this capability. Thank you for your
    patience.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2003
    Hi Wim,

    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.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.