Author: rolf
Date: 2007-04-03 08:00:40 -0400 (Tue, 03 Apr 2007)
New Revision: 75339
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
Log:
* ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
#79335.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-04-03 11:43:49 UTC (rev 75338)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-04-03 12:00:40 UTC (rev 75339)
@@ -1,5 +1,10 @@
2007-04-03 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+ * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
+ #79335.
+
+2007-04-03 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+
* XplatUIX11.cs: SetWMStyles: If the control is a form with
FormBorderStyle = None, don't give the window any decorations.
Fixes #81276.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
2007-04-03 11:43:49 UTC (rev 75338)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
2007-04-03 12:00:40 UTC (rev 75339)
@@ -4114,10 +4114,13 @@
#endregion // ScrollBar
#region StatusBar
- public override void DrawStatusBar (Graphics dc, Rectangle
clip, StatusBar sb) {
+ public override void DrawStatusBar (Graphics real_dc,
Rectangle clip, StatusBar sb) {
Rectangle area = sb.ClientRectangle;
int horz_border = 2;
int vert_border = 2;
+
+ Image backbuffer = new Bitmap (sb.ClientSize.Width,
sb.ClientSize.Height, real_dc);
+ Graphics dc = Graphics.FromImage (backbuffer);
bool is_color_control = sb.BackColor.ToArgb () ==
ColorControl.ToArgb ();
@@ -4162,6 +4165,10 @@
area = new Rectangle (area.Right - 16 - 2,
area.Bottom - 12 - 1, 16, 16);
CPDrawSizeGrip (dc, ColorControl, area);
}
+
+ real_dc.DrawImage (backbuffer, 0, 0);
+ dc.Dispose ();
+ backbuffer.Dispose ();
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches