I'd like to dynamically resize the height of the TRichview(edit) component on my form between for example 75 and 350 points.
How Do I determine the total height of the formatted text?
My demand is:
1. delete all leading blank lines (including spaces and Tabs)
2. Determine height of the formatted text (th:textheight in point)
3.a th<=75 -> set component height to 75
3.b th between 75 and 350 -> set component height to th
3.c th>350 then set component height to 350
Any idea or code fragment to start with?