Author: mkestner
Date: 2006-06-02 11:16:53 -0400 (Fri, 02 Jun 2006)
New Revision: 61409

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollBar.cs
Log:

2006-06-01  Mike Kestner  <[EMAIL PROTECTED]>

        * ScrollBar.cs: remove Capture setting/clearing, as it happens
        automatically in the Control.WndProc.


Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-06-02 14:53:26 UTC (rev 61408)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-06-02 15:16:53 UTC (rev 61409)
@@ -1,3 +1,8 @@
+2006-06-01  Mike Kestner  <[EMAIL PROTECTED]>
+
+       * ScrollBar.cs: remove Capture setting/clearing, as it happens
+       automatically in the Control.WndProc.
+
 2006-06-01 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * FileDialog.cs: fix crash when running SharpChess, which sets the

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollBar.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollBar.cs     
2006-06-02 14:53:26 UTC (rev 61408)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollBar.cs     
2006-06-02 15:16:53 UTC (rev 61409)
@@ -904,7 +904,6 @@
 
                        if (firstbutton_state != ButtonState.Inactive && 
first_arrow_area.Contains (e.X, e.Y)) {
                                SendWMScroll(ScrollBarCommands.SB_LINEUP);
-                               this.Capture = true;
                                firstbutton_state = ButtonState.Pushed;
                                firstbutton_pressed = true;
                                Invalidate (first_arrow_area);
@@ -917,7 +916,6 @@
 
                        if (secondbutton_state != ButtonState.Inactive && 
second_arrow_area.Contains (e.X, e.Y)) {
                                SendWMScroll(ScrollBarCommands.SB_LINEDOWN);
-                               this.Capture = true;
                                secondbutton_state = ButtonState.Pushed;
                                secondbutton_pressed = true;
                                Invalidate (second_arrow_area);
@@ -930,7 +928,6 @@
 
                        if (thumb_size > 0 && thumb_pos.Contains (e.X, e.Y)) {
                                thumb_pressed = true;
-                               this.Capture = true;
                                SendWMScroll(ScrollBarCommands.SB_THUMBTRACK);
                                if (vert) {
                                        thumbclick_offset = e.Y - thumb_pos.Y;
@@ -1005,7 +1002,6 @@
                                DirtyThumbArea ();
                                thumb_moving = ThumbMoving.None;
                        }
-                       this.Capture = false;
 
                        if (firstbutton_pressed) {
                                firstbutton_state = ButtonState.Normal;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to