Tag: cws_src680_rpt23fix02
User: oj      
Date: 2007-07-23 12:01:03+0000
Modified:
   dba/reportdesign/source/ui/report/dlgedfunc.cxx

Log:
 #i77721# solve scroll problem

File Changes:

Directory: /dba/reportdesign/source/ui/report/
==============================================

File [changed]: dlgedfunc.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/reportdesign/source/ui/report/dlgedfunc.cxx?r1=1.2&r2=1.2.4.1
Delta lines:  +9 -10
--------------------
--- dlgedfunc.cxx       2007-07-09 11:56:33+0000        1.2
+++ dlgedfunc.cxx       2007-07-23 12:01:00+0000        1.2.4.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: dlgedfunc.cxx,v $
  *
- *  $Revision: 1.2 $
+ *  $Revision: 1.2.4.1 $
  *
- *  last change: $Author: rt $ $Date: 2007/07/09 11:56:33 $
+ *  last change: $Author: oj $ $Date: 2007/07/23 12:01:00 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -129,20 +129,19 @@
        {
                ScrollBar* pHScroll = pScrollWindow->GetHScroll();
                ScrollBar* pVScroll = pScrollWindow->GetVScroll();
-               long nDeltaX = pHScroll->GetLineSize();
-               long nDeltaY = pVScroll->GetLineSize();
-
+               ScrollType eH = SCROLL_LINEDOWN,eV = SCROLL_LINEDOWN;
                if( rPos.X() < aOutRect.Left() )
-                       nDeltaX = -nDeltaX;
+            eH = SCROLL_LINEUP;
                else if( rPos.X() <= aOutRect.Right() )
-                       nDeltaX = 0;
+                       eH = SCROLL_DONTKNOW;
 
                if( rPos.Y() < aOutRect.Top() )
-                       nDeltaY = -nDeltaY;
+                       eV = SCROLL_LINEUP;
                else if( rPos.Y() <= aOutRect.Bottom() )
-                       nDeltaY = 0;
+                       eV = SCROLL_DONTKNOW;
 
-               pScrollWindow->EndScroll(nDeltaX,nDeltaY);
+        pHScroll->DoScrollAction(eH);
+        pVScroll->DoScrollAction(eV);
        }
 
        aScrollTimer.Start();




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to