Author: jpobst
Date: 2007-12-03 21:09:11 -0500 (Mon, 03 Dec 2007)
New Revision: 90619

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

        * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
        the image margin so custom renderers can correctly place it.

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-12-04 02:05:45 UTC (rev 90618)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-12-04 02:09:11 UTC (rev 90619)
@@ -1,5 +1,10 @@
 2007-12-03  Jonathan Pobst  <[EMAIL PROTECTED]>
 
+       * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
+       the image margin so custom renderers can correctly place it.
+
+2007-12-03  Jonathan Pobst  <[EMAIL PROTECTED]>
+
        * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
        so custom renderers can correctly place it.
 

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripDropDownMenu.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripDropDownMenu.cs
 2007-12-04 02:05:45 UTC (rev 90618)
+++ 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripDropDownMenu.cs
 2007-12-04 02:09:11 UTC (rev 90619)
@@ -155,8 +155,10 @@
 
                        this.Renderer.DrawToolStripBackground (e);
                        
-                       if (this.ShowCheckMargin || this.ShowImageMargin)
+                       if (this.ShowCheckMargin || this.ShowImageMargin) {
+                               e = new ToolStripRenderEventArgs 
(pevent.Graphics, this, new Rectangle (e.AffectedBounds.Location, new Size (25, 
e.AffectedBounds.Height)), SystemColors.Control);
                                this.Renderer.DrawImageMargin (e);
+                       }
                }
 
                protected override void SetDisplayedItems ()

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

Reply via email to