Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Dialog - line breaks in CT_EDIT box  (Read 1514 times)

0 Members and 1 Guest are viewing this topic.

Offline hoz

  • OFPEC Site
  • Administrator
  • *****
Dialog - line breaks in CT_EDIT box
« on: 03 Feb 2009, 17:11:33 »
I would like to add line breaks to a CT_EDIT box. I'm using styles ST_LEFT + ST_MULTI

Code: [Select]
_text= format ["my text %1;\n_ Newline", getpos player];
hint format["%1", _text];
(finddisplay 6000) displayCtrl 6004 ctrlSetText format["%1", _text];

Within the Hint the \n is processed and a new line is added.
Within the control the \n is not processed and no new line is added.

If I use structuredText and introduce <br />  I get my line break, but  I cannot add the text to the CT_EDIT. I must use CT_STRUCTURED_TEXT to get the text added to the control. However I cannot highlight and copy the text out of a structured text box.

Any solutions?
« Last Edit: 03 Feb 2009, 23:58:13 by hoz »
Xbox Rocks