Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

virtual void OglGui::ScrollBar::MouseFunc ( INT  msg,
INT  but,
INT  state,
INT  x,
INT  y 
) [inline, virtual]

Definition at line 302 of file ScrollBar.h.

References ChangePos(), cSbW, OglGui::Window::GetState(), mHorizontal, mMouseDownPos, OglGui::OglWindow::mOglWnd, OglGui::Window::MouseFunc(), mPagePressed, mScrollLine, PropagateScrolling(), and OglGui::RepeatTimer::StartRepeatTime().

00303     {
00304         if (!GetState() || (state & (oglShift|oglControl)))
00305             return;
00306 
00307         Window::MouseFunc(msg, but, state, x, y);
00308 
00309         // a click here means pageup or pagedown
00310         if ((msg==oglMouseDown || msg==oglMouseDblClick) && but==oglLeftButton) 
00311         {
00312             if (mHorizontal)
00313                 mMouseDownPos = x-cSbW;
00314             else
00315                 mMouseDownPos = y-cSbW;
00316             PropagateScrolling();
00317             mPagePressed = true;
00318             StartRepeatTime();
00319             oglSys.SetAlwaysDraw(mOglWnd, true);
00320         }
00321 
00322         if (msg == oglMouseWheelUp)
00323             ChangePos(-mScrollLine * ((state&oglShift) ? 5 : 1));
00324         if (msg == oglMouseWheelDown)
00325             ChangePos(mScrollLine * ((state&oglShift) ? 5 : 1));
00326 
00327         if (msg == oglMouseMove)
00328         {
00329             if (mHorizontal)
00330                 mMouseDownPos = x-cSbW;
00331             else
00332                 mMouseDownPos = y-cSbW;
00333         }
00334 
00335         if (msg == oglMouseUp && but == oglLeftButton)
00336         {
00337             mPagePressed = false;
00338             oglSys.SetAlwaysDraw(mOglWnd, false);
00339         }
00340 
00341     }

Here is the call graph for this function:


Generated on Fri Mar 19 12:05:03 2010 for ImpalaSrc by  doxygen 1.5.1