Home   Help Search Login Register  

Author Topic: Dialog - line breaks in CT_EDIT box  (Read 887 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