Create TextBox without layout file

CQUxxh

28-06-2013 08:37:45

in my createScene function
MyGUI::TextBox *smEditPwd=MyGUI::Gui::getInstance().createWidget<MyGUI::TextBox>("TextBox", MyGUI::IntCoord(145, 205, 75, 20), MyGUI::Align::Default, "Main");
smEditPwd->setCaption("UserPwd");
MyGUI::ButtonPtr mLogin=MyGUI::Gui::getInstance().createWidget<MyGUI::Button>("Button", MyGUI::IntCoord(462, 499, 100, 25), MyGUI::Align::Default, "Main");
mLogin->setCaption("Login");


I only see a login button on screen,can not see the UserPwd TextBox,any one can help me?

Altren

28-06-2013 16:53:59

Code seems to be correct. Check logs.