Author: jpobst
Date: 2007-09-20 15:33:12 -0400 (Thu, 20 Sep 2007)
New Revision: 86103

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripSplitButton.cs
Log:
2007-09-20  Jonathan Pobst  <[EMAIL PROTECTED]>

        * ToolStripSplitButton.cs: Call the ButtonClick event if the button
        portion of the item is clicked.

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-09-20 19:15:43 UTC (rev 86102)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-09-20 19:33:12 UTC (rev 86103)
@@ -1,5 +1,10 @@
 2007-09-20  Jonathan Pobst  <[EMAIL PROTECTED]>
 
+       * ToolStripSplitButton.cs: Call the ButtonClick event if the button
+       portion of the item is clicked.
+
+2007-09-20  Jonathan Pobst  <[EMAIL PROTECTED]>
+
        * TextControl.cs: Do not tell the system to move the cursor if the
        textbox isn't focused.  Fixes part of bug #322668.
 

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripSplitButton.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripSplitButton.cs
  2007-09-20 19:15:43 UTC (rev 86102)
+++ 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripSplitButton.cs
  2007-09-20 19:33:12 UTC (rev 86103)
@@ -314,6 +314,19 @@
                        return true;
                }
                #endregion
+
+               #region Internal Methods
+               internal override void HandleClick (EventArgs e)
+               {
+                       base.HandleClick (e);
+
+                       MouseEventArgs mea = e as MouseEventArgs;
+                       
+                       if (mea != null)
+                               if (ButtonBounds.Contains (mea.Location))
+                                       OnButtonClick (EventArgs.Empty);
+               }
+               #endregion
                
                #region Public Events
                static object ButtonClickEvent = new object ();

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

Reply via email to