[SOLVED] Bottom window receives mouse / keyboard instead top

nargil

30-03-2009 17:31:54

I can't access the window I just created, because the window thats on the bottom of it receives all mouse / key clicks.

I have:class InventoryWindow : public wraps::BaseLayout
{
...
}


at some point in the notifyEndDrop event I call:GameEngine::getSingletonPtr()->getGuiManager()->getGui()->load("amount.layout");
MyGUI::WindowPtr am = GameEngine::getSingletonPtr()->getGuiManager()->getGui()->findWidget<MyGUI::Window>(Ogre::String("AmountWin"),false);
am->findWidget("ok")->eventMouseButtonClick = MyGUI::newDelegate(this,&InventoryWindow::amountOK);
MyGUI::InputManager::getInstance().setKeyFocusWidget(am);
//MyGUI::InputManager::getInstance().addWidgetModal(am); // this does not help - just makes it worse, because I can't move the inventory window to the side and access the new created window


here is a video:
http://www.youtube.com/watch?v=cj1WnK-dPHY

my.name

30-03-2009 17:46:09

use WindowCS or WindowCSX skin

nargil

30-03-2009 17:51:41

doesn't help

PS latest svn

Altren

30-03-2009 18:43:14

Show your layouts and how you creating windows (if you created them in code). Probably you using non-overlappable layers.

nargil

30-03-2009 20:12:04

Thank you. Changing layer="Back" to layer="Overlapped" in the .layout files helped.

e-beer for you

my.name

31-03-2009 00:08:32

=)