Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   GuiTextMLCtrl.text new line? (https://forums.graalonline.com/forums/showthread.php?t=66094)

Prozac 05-18-2006 04:39 AM

GuiTextMLCtrl.text new line?
 
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 04:52 AM

<br> works for me...

PHP Code:

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

I think even this will work (is just a bit ugly):
PHP Code:

temp.txt =
"Line1
Line2"
;
obj.setText(temp.txt); 


Prozac 05-18-2006 04: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.


All times are GMT +2. The time now is 12:52 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.