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 10:06AM
    Memo.Width in Script ?! (Note that you should have the right Align to set Width)
  • edited 10:06AM
    Strange, but Memo.Width kept returning the design time value. I had to use Memo.CalcWidth instead.

    Ray Mond

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.