[fixed] MessageBox buttons bug in v1.3

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
agt
Posts: 5
Joined: Sat May 05, 2007 10:50 am

[fixed] MessageBox buttons bug in v1.3

Post 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.
flipnode
Posts: 15
Joined: Thu Jul 27, 2006 1:24 am

AddMessageBox Bug in 1.3

Post by flipnode »

I am having the same issue. Trying to track down the issue. This is an annoying bug.
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post 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).
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
flipnode
Posts: 15
Joined: Thu Jul 27, 2006 1:24 am

Thanks MessageBox

Post 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.
agt
Posts: 5
Joined: Sat May 05, 2007 10:50 am

Post by agt »

Thanks for the fix! It's working now correctly.
Post Reply