Topic: multiline text labels?

I know I can use more than one label, but if I have a very long line of text, is there a way to set the text control to be multiline?

I tried embedding control characters "\n\r" ( and \\n\\r) for a new line carraige return in the text but that did not work.

Re: multiline text labels?

Hello Slim

You can use Memo component

YY

Re: multiline text labels?

@YY

Yeah but it does not have the same look that i want.

Thanks for the info.

Re: multiline text labels?

slim
Added property WordWrap form Label, please, download beta version:
https://www.dropbox.com/s/bhwao1izh5q4y … 7.zip?dl=0

Dmitry.

Re: multiline text labels?

Hello Slim

Another solution :

Place a Static Label and addd a script as :

procedure MyForm_OnShow (Sender: string; Action: string);
begin
   MyForm.Label1.Caption := 'Book Prize'#13'Comments'#13'Notes';
end;

But as wrote DriveSoft, property Wrap is shorter.

YY

Re: multiline text labels?

@YY
Thank you for your  solutuion.


@DriveSoft
I just downloaded and tried.  Works fine.


Thank you both.