- case wxEVT_SCROLLWIN_TOP:
- {
- if (orient == wxHORIZONTAL)
- scrollinc = -m_viewportW;
- else
- scrollinc = -m_viewportH;
- break;
- }
- case wxEVT_SCROLLWIN_BOTTOM:
- {
- if (orient == wxHORIZONTAL)
- scrollinc = m_viewportW;
- else
- scrollinc = m_viewportH;
- break;
- }
- case wxEVT_SCROLLWIN_LINEUP: scrollinc = -1; break;
- case wxEVT_SCROLLWIN_LINEDOWN: scrollinc = +1; break;
- case wxEVT_SCROLLWIN_PAGEUP: scrollinc = -10; break;
- case wxEVT_SCROLLWIN_PAGEDOWN: scrollinc = +10; break;
- case wxEVT_SCROLLWIN_THUMBTRACK:
+ if (orient == wxHORIZONTAL)
+ scrollinc = -m_viewportW;
+ else
+ scrollinc = -m_viewportH;
+ }
+ else
+ if (type == wxEVT_SCROLLWIN_BOTTOM)
+ {
+ if (orient == wxHORIZONTAL)
+ scrollinc = m_viewportW;
+ else
+ scrollinc = m_viewportH;
+ }
+ else
+ if (type == wxEVT_SCROLLWIN_LINEUP)
+ {
+ scrollinc = -1;
+ }
+ else
+ if (type == wxEVT_SCROLLWIN_LINEDOWN)
+ {
+ scrollinc = +1;
+ }
+ else
+ if (type == wxEVT_SCROLLWIN_PAGEUP)
+ {
+ scrollinc = -10;
+ }
+ else
+ if (type == wxEVT_SCROLLWIN_PAGEDOWN)
+ {
+ scrollinc = -10;
+ }
+ else
+ if (type == wxEVT_SCROLLWIN_THUMBTRACK)
+ {
+ if (orient == wxHORIZONTAL)