1

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?

Anthony Forloney
  • 90,123
  • 14
  • 117
  • 115
Gabriel
  • 20,797
  • 27
  • 159
  • 293

4 Answers4

1

For multiline text editing look at Memo component and Lines property

Ertunç
  • 819
  • 1
  • 9
  • 21
1

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

Anthony Forloney
  • 90,123
  • 14
  • 117
  • 115
0

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

ngen
  • 8,816
  • 2
  • 18
  • 15
0

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

Gabriel
  • 20,797
  • 27
  • 159
  • 293