Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread How to display multiple lines in a TAlertLabel
Fri, Feb 24 2017 4:20 AMPermanent Link

Paul Coshott

Avatar

Hi,

How can I display multiple lines in a TAlertLabel at runtime.

In Delphi, I'd do something like:
AlertLabel.Caption := 'Line1' + #13#10 + 'Line2';

How do I do this in EWB?

Thanks for any help,
Paul
Fri, Feb 24 2017 4:46 AMPermanent Link

Matthew Jones

Paul Coshott wrote:

> AlertLabel.Caption := 'Line1' + #13#10 + 'Line2';

That can work in some places, though IIRC you have to do #13 + #10 to separate them. But it depends on the actual component used, so dig into the code/interface to see if you can change it to wrap?

--

Matthew Jones
Sun, Feb 26 2017 12:45 PMPermanent Link

Uli Becker

Paul,

> AlertLabel.Caption := 'Line1' + #13#10 + 'Line2';
> How do I do this in EWB?

AlertLabel1.Caption := 'Line1' + #13 + #10 + 'Line2';

Should work. Also:

AlertLabel1.Caption := 'Line1' + #10 + 'Line2';

Uli
Thu, Mar 16 2017 5:00 AMPermanent Link

Paul Coshott

Avatar

Perfect. Thanks guys, working just how I wanted.

Cheers,
Paul
Image