OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: hoz on 03 Feb 2009, 17:11:33

Title: Dialog - line breaks in CT_EDIT box
Post by: hoz 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?