Home End User

How can I limit the height of the DBMemo ?

edited October 2002 in End User
How can I limit the maximum height of the DBMemo ?

Example, I want to display a 5 lines maximum of the memo field.

I tried to check the Stretch property, but it display all the text. I
tried without check Stretch and set the height at the maximum I want,
but all row have the maximum height.


--
Philippe Constant
CTRL/Informatique
350 Rue Franquet, bureau 50
Ste-Foy, Qc
G1P 4P3

Comments

  • edited October 2002
    By default, you'll have to either use a static height memo or use a dynamic
    height memo. There is no hybrid behavior available. You will have to
    precalculate the wrapped lines and use a static height memo by settings its
    height in the DetailBand's BeforePrint event. Search our newsgroups on
    ppPlainText. There is a WordWrap routine in this unit that you can use to
    wrap text. You can also search our source (ppMemo.pas) for occurrences
    where we use this routine.


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.