input text without guienv->addEditBox()?
input text without guienv->addEditBox()?
is there any way to input text without using the editbox class? whenever i add one, my program crashes, and it seems to only happen on this computer. so i'd like a way around, as it's rather hard to make a chat program without text...
i think i'll use zeno's idea. thanks, zeno!
hybrid, i've got hello world to lock up just by adding the guienv->addEditBox(L"Hello world",rect<int>(10,10,260,22),true); beneath the somewhat similar statictext. i've got no idea why, but it does not work. and i'm not good at recompiling, so... i'll just use the eventreceiver.
hybrid, i've got hello world to lock up just by adding the guienv->addEditBox(L"Hello world",rect<int>(10,10,260,22),true); beneath the somewhat similar statictext. i've got no idea why, but it does not work. and i'm not good at recompiling, so... i'll just use the eventreceiver.
-
- Posts: 1029
- Joined: Thu Apr 06, 2006 12:45 am
- Location: Tennesee, USA
- Contact:
If that is from the same code as the edit box in your other post, I already fixed the only problem there should be.
Then you just do this
IGUIEditBox* whatever = guienv->addEditBox(L"Hello world",rect<int>(10,10,260,22),true);
and then in your event receiver
if(whateverkeyorbutton)
{
whatever->getText();
}
Then you just do this
IGUIEditBox* whatever = guienv->addEditBox(L"Hello world",rect<int>(10,10,260,22),true);
and then in your event receiver
if(whateverkeyorbutton)
{
whatever->getText();
}