IceCold
IceCold

Reputation: 21194

How to display text on multiple lines?

I am using RadPhp to build a PHP application. I want to display several independent lines of text in an Edit control (using $this->edit->text property ) but it seems to be impossible. If I use \n it just displays it instead of braking this line in two.


PS: can anybody add 'RadPHP' as tag for this question?

Upvotes: 1

Views: 687

Answers (4)

Ertunç
Ertunç

Reputation: 829

For multiline text editing look at Memo component and Lines property

Upvotes: 1

IceCold
IceCold

Reputation: 21194

I just replaced it with a simple label. It works now.

Upvotes: 0

ngen
ngen

Reputation: 8966

Also don't know RadPHP as well but does it use nl2br or something similar to that and you forgot to insert it?

Upvotes: 0

Anthony Forloney
Anthony Forloney

Reputation: 91816

I have no experience on RadPHP, but instead of \n character, try using <br/> to break your lines into two.

Upvotes: 1

Related Questions