Game Development Community

How to clear text in GuiMLTextCtrl by script?.....

by Raja John · in Torque Game Builder · 03/11/2009 (2:21 am) · 2 replies

my coding for addtext to guimltextctrl is..
function addMsg(%string)
{
	%new_string = "\n" @ %string;
	txt_info.addText(%new_string, false);
}

and call as..
addMsg("WELCOME");

how to remove any text in GuiMLTextCtrl by script

#1
03/11/2009 (6:36 am)
I think you can just do txt_info.SetText("");
#2
03/11/2009 (10:32 am)
Thanks Steve.

Fine