http://www.cegui.org.uk/phpBB2/viewtopic.php?t=3412
i'm creating chat window using listbox and editbox
each window (main window, listbox and editbox) i subscribe the same event to achieve the transparent once the cursor leaves the window
the problem appear once the text reach bottom and the slider appear
if i put my cursor on the slider, the main window will be transparent again (same effect once the cursor leaves the window)
i try this code:
Code: Select all
Listbox* chatLog = static_cast<Listbox*> (wmgr->getWindow((utf8*)"InGame/ChatWindow/ChatLog"));
Window *bar = static_cast<Window*> (chatLog->getVertScrollbar());
chatLog->setShowHorzScrollbar(false);
chatLog->setShowVertScrollbar(true);
and subscribe this event:
Code: Select all
bar->subscribeEvent(Window::EventMouseEnters,
Event::Subscriber(&MainFrameListener::handle_InGameRoomChat_Mouse_Enters, this));
bar->subscribeEvent(Window::EventMouseLeaves,
Event::Subscriber(&MainFrameListener::handle_InGameRoomChat_Mouse_Leaves, this));
but its not solve the problem
is there any way to make the window as one group
and subscribe an event to the group and affect all the window?
or maybe there is a parent child system so when the cursor enter the parents area some event is triggered
any help is appreciated