Game Development Community

guitexteditctrl functions??

by Gagan · in Torque Developer Network · 07/28/2009 (1:32 pm) · 1 replies

suppose i want to use onkeydown function along with the guitexteditctrl...i have done this:
void GuiControl::onMouseDown(const GuiEvent &event)
{
nameText.text="some text here";
}
but application gets hung...do i need to add some header files or what??
please help!

#1
07/29/2009 (3:51 pm)
You should look at the implementation of the GuiBitmapCtrl (or GuiMouseEventCtrl) in the engine to see how it deals with mouse events. Usually, I myself just cut, paste, and then modify the code to suit my needs...