Scrollable Pane Subscriptions

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

ShadowTiger
Quite a regular
Quite a regular
Posts: 46
Joined: Fri Mar 19, 2010 05:31

Scrollable Pane Subscriptions

Postby ShadowTiger » Thu Nov 04, 2010 23:31

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.

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: Scrollable Pane Subscriptions

Postby Jamarr » Tue Nov 09, 2010 14:03

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.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!

ShadowTiger
Quite a regular
Quite a regular
Posts: 46
Joined: Fri Mar 19, 2010 05:31

Re: Scrollable Pane Subscriptions

Postby ShadowTiger » Wed Nov 10, 2010 23:59

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.


Return to “Help”

Who is online

Users browsing this forum: Bing [Bot] and 13 guests