Author: jpobst
Date: 2007-09-18 11:10:54 -0400 (Tue, 18 Sep 2007)
New Revision: 85974
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripDropDownButton.cs
Log:
2007-09-18 Jonathan Pobst <[EMAIL PROTECTED]>
* ToolStripDropDownButton.cs: Only drop down overflow menu with a
left click. Fixes the easy part of bug #325969.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-09-18 15:04:36 UTC (rev 85973)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-09-18 15:10:54 UTC (rev 85974)
@@ -1,5 +1,10 @@
2007-09-18 Jonathan Pobst <[EMAIL PROTECTED]>
+ * ToolStripDropDownButton.cs: Only drop down overflow menu with a
+ left click. Fixes the easy part of bug #325969.
+
+2007-09-18 Jonathan Pobst <[EMAIL PROTECTED]>
+
* ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
bug #325406, but set a minimum for StatusStrip to 22 to keep
bug #325390 fixed. I think this minimum would have been figured
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripDropDownButton.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripDropDownButton.cs
2007-09-18 15:04:36 UTC (rev 85973)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripDropDownButton.cs
2007-09-18 15:10:54 UTC (rev 85974)
@@ -104,10 +104,12 @@
protected override void OnMouseDown (MouseEventArgs e)
{
- if (this.DropDown.Visible)
- this.HideDropDown
(ToolStripDropDownCloseReason.ItemClicked);
- else
- this.ShowDropDown ();
+ if (e.Button == MouseButtons.Left) {
+ if (this.DropDown.Visible)
+ this.HideDropDown
(ToolStripDropDownCloseReason.ItemClicked);
+ else
+ this.ShowDropDown ();
+ }
base.OnMouseDown (e);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches