Example #1
0
void ScrollBar::handleMaxButtonAction(ActionEventDetails* const e)
{
	if(getEnabled())
	{
		scrollUnit(1);
	}
}
Example #2
0
void ScrollBar::mouseWheelMoved(const MouseWheelEventUnrecPtr e)
{
    if(getEnabled())
    {
        if(e->getScrollType() == MouseWheelEvent::BLOCK_SCROLL)
        {
            scrollBlock(-e->getScrollAmount());
        }
        else if(e->getScrollType() == MouseWheelEvent::UNIT_SCROLL)
        {
            scrollUnit(-e->getUnitsToScroll());
        }
    }
    ComponentContainer::mouseWheelMoved(e);
}