Recent

Author Topic: RichMemo's contents height  (Read 370 times)

dpap

  • Jr. Member
  • **
  • Posts: 54
RichMemo's contents height
« on: July 15, 2025, 06:13:22 pm »
In Delphi the TRichEdit has an event "onResizeRequest" that fires when the contents changed. It gives the rect that will be rendered.
In Lazarus, the TRichMemo lacks this capability that is very-very useful (at least to me) when you need to find the rendering rect
for eg. calculate where to put a page break especially when the text has tables that must be break in special places or if you want to extend the text (maybe a Table) to the end of page.
Other useful case is when you plot a drawing on a canvas and you want to overlay it with some rects with RichText. Then you must resize the rect at suitable dimensions.
Is there a way to add or simulate this capability to TRichMemo or is there a replacement that can do it?

 

TinyPortal © 2005-2018