Author: jpobst
Date: 2007-07-20 10:19:04 -0400 (Fri, 20 Jul 2007)
New Revision: 82353
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Theming/Default/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Theming/Default/ToolStripPainter.cs
Log:
2007-07-20 Jonathan Pobst <[EMAIL PROTECTED]>
* ToolStripPainter.cs: Patch from Rolf. We weren't painting a
Checked button as sunken. [Fixes bug #82151]
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Theming/Default/ChangeLog
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Theming/Default/ChangeLog
2007-07-20 13:22:16 UTC (rev 82352)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Theming/Default/ChangeLog
2007-07-20 14:19:04 UTC (rev 82353)
@@ -1,3 +1,8 @@
+2007-07-20 Jonathan Pobst <[EMAIL PROTECTED]>
+
+ * ToolStripPainter.cs: Patch from Rolf. We weren't painting a
+ Checked button as sunken. [Fixes bug #82151]
+
2007-07-16 Jonathan Pobst <[EMAIL PROTECTED]>
* ButtonPainter.cs: For flat buttons, draw mouse highlight when
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Theming/Default/ToolStripPainter.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Theming/Default/ToolStripPainter.cs
2007-07-20 13:22:16 UTC (rev 82352)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Theming/Default/ToolStripPainter.cs
2007-07-20 14:19:04 UTC (rev 82353)
@@ -44,7 +44,9 @@
Rectangle paint_here = new Rectangle (0, 0,
e.Item.Width, e.Item.Height);
- if (e.Item.Pressed)
+ ToolStripButton tsb = e.Item as ToolStripButton;
+
+ if (e.Item.Pressed || (tsb != null && tsb.Checked))
ControlPaint.DrawBorder3D (e.Graphics,
paint_here, Border3DStyle.SunkenOuter);
else if (e.Item.Selected)
ControlPaint.DrawBorder3D (e.Graphics,
paint_here, Border3DStyle.RaisedInner);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches