PDA

View Full Version : GuiTextMLCtrl.text new line?


Prozac
05-18-2006, 05:39 AM
in the GuiTextMLCtrl
the .text attribute

neither the <br> tag nor NL such as

textbox.text = "foo" NL "bar";

work to create a new line in the text box ....

so, how do I insert a line break in a gui text box?

napo_p2p
05-18-2006, 05:52 AM
<br> works for me...

obj.setText("Line1<br>Line2");

I think even this will work (is just a bit ugly):
temp.txt =
"Line1
Line2";
obj.setText(temp.txt);

Prozac
05-18-2006, 05:56 AM
hey ya ... ok thanks man. i got it workin now. even with the text being recieved through a triggeraction from the item desciption of a weapon - the description being in the weapon, and the item equip (q menu) being a gui system.
i'm all set.