Measuring memo width at runtime

Is it possible to determine the width of a TfrxMemo at runtime, and if it exceeds a certain value, to reduce the size of the TfrxMemo font so that it fits within a certain range?

Thanks in advance.

Ray Mond

Comments

  • dschuchdschuch Dresden,Germany
    edited 7:54PM
    Memo.Width in Script ?! (Note that you should have the right Align to set Width)
  • edited 7:54PM
    Strange, but Memo.Width kept returning the design time value. I had to use Memo.CalcWidth instead.

    Ray Mond

Leave a Comment