Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

How to use #13 in ppLabel caption

edited April 2007 in General
I want to use #13 in ppLabel caption, but can not change text to two rows.
Code:
ppLabel1.Caption:=Str1+#13+Str2;

Thanks

Comments

  • edited April 2007
    Hi Victor,

    The TppLabel component will recognize non-visible characters such as the
    carrage return however the it is not a dynamic height (stretching)
    component, so you will need to size the component so both lines of text will
    fit. The best option would be to use the TppMemo object with something like
    the following.

    ppMemo1.Lines.Text := 'hello' + #13#10 + 'goodbye';

    can also be done as...

    ppMemo1.Lines.Add('hello');
    ppMemo1.Lines.Add('goodbye');

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.