Page 1 of 1

Scrollable Pane Subscriptions

Posted: Thu Nov 04, 2010 23:31
by ShadowTiger
Greetings CE & Crew!

I have recently finished the glorious process of transitioning from Stone Age technology (6.2) to the marvelous wonders of the modern era (7.4)!

It was easier than I expected (only minimal headbanging was required)... but alas 1 problem eludes my understanding.

My beloved scrollable pane has several subscriptions

Code: Select all

ScrollablePane* board = static_cast<ScrollablePane*>(d_wm->createWindow("WindowsLook/ScrollablePane", "root/Board"));
board->subscribeEvent(Window::EventMouseButtonUp, Event::Subscriber(&GameGUI::handleBoardReleased, this));
board->subscribeEvent(Window::EventMouseButtonDown, Event::Subscriber(&GameGUI::handleBoardClicked, this));
board->subscribeEvent(Window::EventMouseMove, Event::Subscriber(&GameGUI::handleBoardHover, this));


None of these work anymore. Most of my code is identical to the version that worked in 6.2, and I made sure there are no windows that are intercepting the clicks. I found that a window stored inside the scrollable pane works fine with the same subscriptions... so does anyone know why my scrollable pane subscriptions never fire?

I have plenty of other regular windows that work fine with event subscriptions, so I am confused as to why scrollable panes are unique... I assume something changed since the previous version of CEGUI.

Re: Scrollable Pane Subscriptions

Posted: Tue Nov 09, 2010 14:03
by Jamarr
Not sure how I missed this thread. Anyway, in case you have not fixed / figured this out yet, I think it is related to input propagation being changed in 0.7.2. Take a look at this mantis ticket. In particular, you should try setting MouseInputPropagationEnabled on the window. If you search the forum for propagation you will find a few threads talking about this. Let us know if that works for you.

*edit: I came across this thread seemingly about the same issue; it sounds like MouseInputPropagationEnabled should address the issue.

Re: Scrollable Pane Subscriptions

Posted: Wed Nov 10, 2010 23:59
by ShadowTiger
Thanks for the info, I just wish that I knew this before I went through and made a work around. Anyways... I should be able to get everything working as I originally intended now.