Scrollable Pane Subscriptions
Posted: 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
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.
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.