MessageBox
Posted: Tue Jun 28, 2011 6:19 pm
Hi,
is there a way to show a window, like the Windows "MessageBox()"? The only way I found was:
(from tutorial code)
Which needs a IGUIEnvironment* and doesn't take the focus. Is there a way to show a "free" message box which takes the focus?
How do you show your error messages, e.g. "Could not create device."?
is there a way to show a window, like the Windows "MessageBox()"? The only way I found was:
(from tutorial code)
Code: Select all
IGUIWindow* window = env->addWindow(
rect<s32>(100 + Context.counter, 100 + Context.counter, 300 + Context.counter, 200 + Context.counter),
false, // modal?
L"Test window");
env->addStaticText(L"Please close me",
rect<s32>(35,35,140,50),
true, // border?
false, // wordwrap?
window);
How do you show your error messages, e.g. "Could not create device."?