some thing about modal messagebox

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Guest

some thing about modal messagebox

Post by Guest »

Try the follow code:

IGUIWindow* mywindow = env->addWindow(rect<s32>(100 , 100 , 120, 200 ),
false, L"Test window");
env->addMessageBox(L"Test",L"11111",true,EMBF_OK,mywindow ,-1);

and then you will find that: user can choose the element exceed the range of mywindow.

I think the follow construction function should not take "parent->getAbsolutePosition())" as the size of CGUIModalScreen.Isn't it?

CGUIModalScreen::CGUIModalScreen(IGUIEnvironment* environment, IGUIElement* parent, s32 id)
: IGUIElement(environment, parent, id, parent->getAbsolutePosition()),
MouseDownTime(0)
{
}
Post Reply