Author: everaldo
Date: 2006-11-29 02:26:30 -0500 (Wed, 29 Nov 2006)
New Revision: 68645
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
Log:
Paint toolbar toggle button background with dotted brush
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-29 05:25:28 UTC (rev 68644)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-29 07:26:30 UTC (rev 68645)
@@ -1,3 +1,8 @@
+2006-11-28 Everaldo Canuto <[EMAIL PROTECTED]>
+
+ * ThemeWin32Classic.cs: Paint toolbar toggle button background
+ with dotted brush. Fixes #79564
+
2006-11-28 Andreia Gaita <[EMAIL PROTECTED]>
* Form.cs: Removed call to UpdateBounds on Form
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
2006-11-29 05:25:28 UTC (rev 68644)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
2006-11-29 07:26:30 UTC (rev 68645)
@@ -4063,18 +4063,21 @@
protected virtual void DrawToolBarToggleButtonBackground
(Graphics dc, ToolBarButton button)
{
+ Brush brush;
Rectangle area = button.Rectangle;
area.X += ToolBarImageGripWidth;
area.Y += ToolBarImageGripWidth;
area.Width -= 2 * ToolBarImageGripWidth;
area.Height -= 2 * ToolBarImageGripWidth;
-
+
if (button.Pushed)
- dc.FillRectangle
(SystemBrushes.ControlLightLight, area);
+ brush = (Brush) ResPool.GetHatchBrush
(HatchStyle.Percent50, ColorScrollBar, ColorControlLightLight);
else if (button.PartialPush)
- dc.FillRectangle (SystemBrushes.ControlLight,
area);
+ brush = SystemBrushes.ControlLight;
else
- dc.FillRectangle (SystemBrushes.Control, area);
+ brush = SystemBrushes.Control;
+
+ dc.FillRectangle (brush, area);
}
protected virtual void DrawToolBarDropDownArrow (Graphics dc,
ToolBarButton button, bool is_flat)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches