The user can enter something, press a button and the input gets validated.
If there is an invalid input, a message box pops up (modal) and tells the user what's going on.
After the user clicked the ok button, i want to refocus this IGUIEditbox.
For this task, i catch the irr::gui::EGET_MESSAGEBOX_OK event in my eventreceiver to know which messagebox has fired the event.
To cut a long story short:
Code: Select all
guienv->setFocus(editBox);
What's the best way to deal with it?
Feature request:
A temporary 'messageBox->setModal(false);' would be nice.