Author: everaldo
Date: 2006-11-07 13:12:11 -0500 (Tue, 07 Nov 2006)
New Revision: 67472
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolBar.cs
Log:
Toolbar mouse clicks fixes
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-07 18:11:37 UTC (rev 67471)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-07 18:12:11 UTC (rev 67472)
@@ -1,3 +1,9 @@
+2006-11-07 Everaldo Canuto <[EMAIL PROTECTED]>
+
+ * ToolBar.cs: Ignore click events when mouse button is not a
+ left button, only accepts other button for dropdown menus.
+ Fixes #79854.
+
2006-11-07 Chris Toshok <[EMAIL PROTECTED]>
* DataGrid.cs: make the back and parent row buttons a little less
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolBar.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolBar.cs
2006-11-07 18:11:37 UTC (rev 67471)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolBar.cs
2006-11-07 18:12:11 UTC (rev 67472)
@@ -612,11 +612,12 @@
}
break;
}
- }
+ } else if (me.Button ==
MouseButtons.Left) {
button.pressed = true;
button.inside = true;
button.InvalidateBorder ();
break;
+ }
}
}
}
@@ -644,7 +645,7 @@
}
}
// Fire a ButtonClick
- if (button.pressed)
+ if ((button.pressed) && (me.Button ==
MouseButtons.Left))
OnButtonClick (new
ToolBarButtonClickEventArgs (button));
} else if (button.pressed) {
button.pressed = false;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches