Artic_Ice83
12-02-2008 20:04:39
how can i scroll a widget when the mouse wheel is moved?
i added an event handler to a panel scollable that trace the EVENT_MOUSE_WHEEL.
what code must i put in my function to avoid the scrollbar to scroll when the mouse wheel is moved?
now i have this code, but i am blocked...
i added an event handler to a panel scollable that trace the EVENT_MOUSE_WHEEL.
what code must i put in my function to avoid the scrollbar to scroll when the mouse wheel is moved?
now i have this code, but i am blocked...
void wheelScrolling(const QuickGUI::EventArgs &args)
{
QuickGUI::MouseEventArgs mea = dynamic_cast<const QuickGUI::MouseEventArgs&>(args);
float wheelChange = mea.wheelChange;
QuickGUI::Panel *mPanel = dynamic_cast<QuickGUI::Panel*>(mea.widget);
// ???
}