Page 1 of 1

[fixed] MessageBox buttons bug in v1.3

Posted: Sat May 05, 2007 11:08 am
by agt
Hi,

After creating messagebox using guienv->addMessageBox, the yes or no buttons don't react to the first mouse click at all. But it starts to work when you click left mouse button somewhere. The problem did not exist in version 1.1.

The bug can be reproduced easily:

Code: Select all

irr::gui::IGUIWindow *window = device->getGUIEnvironment()->addMessageBox(L"foo", L"bar",true,gui::EMBF_YES | gui::EMBF_NO, 0, 0);
1. Click on the yes-button => nothing happens.
2. Click again on the yes-button => the window closes.

AddMessageBox Bug in 1.3

Posted: Sun May 27, 2007 2:58 am
by flipnode
I am having the same issue. Trying to track down the issue. This is an annoying bug.

Posted: Sun May 27, 2007 11:18 pm
by bitplane
ok this is now fixed as of revision 663
i rearranged the button creation order, and set the focus to the least destructive button (ok, cancel, yes then no).

Thanks MessageBox

Posted: Tue May 29, 2007 5:36 pm
by flipnode
Wonderful, I will get the latest changes from SVN when I get home and test the fix. I'll take a look at the changes to see what you did for the fix. I am new to Irrlicht, so i'm still getting used to the objects and the structure.

Posted: Wed May 30, 2007 2:30 pm
by agt
Thanks for the fix! It's working now correctly.