Author: jackson
Date: 2006-07-03 15:26:44 -0400 (Mon, 03 Jul 2006)
New Revision: 62234
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
Log:
* TabControl.cs:
* ThemeWin32Classic.cs: Tabs do not obey normal background color
rules, they are always control color regardless of the
background
color.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-07-03 15:50:17 UTC (rev 62233)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-07-03 19:26:44 UTC (rev 62234)
@@ -1,3 +1,10 @@
+2006-07-03 Jackson Harper <[EMAIL PROTECTED]>
+
+ * TabControl.cs:
+ * ThemeWin32Classic.cs: Tabs do not obey normal background color
+ rules, they are always control color regardless of the background
+ color.
+
2006-07-02 Alexander Olk <[EMAIL PROTECTED]>
* FileDialog.cs: Added internal class MWFConfig.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs
2006-07-03 15:50:17 UTC (rev 62233)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs
2006-07-03 19:26:44 UTC (rev 62234)
@@ -102,7 +102,7 @@
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public override Color BackColor {
- get { return base.BackColor; }
+ get { return ThemeEngine.Current.ColorControl; }
set { /* nothing happens on set on MS */ }
}
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
2006-07-03 15:50:17 UTC (rev 62233)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
2006-07-03 19:26:44 UTC (rev 62234)
@@ -3226,8 +3226,7 @@
public override void DrawTabControl (Graphics dc, Rectangle
area, TabControl tab)
{
- // Do we need to fill the back color? It can't be
changed...
- Brush brush = tab.BackColor.ToArgb () ==
DefaultControlBackColor.ToArgb () ? SystemBrushes.Control :
ResPool.GetSolidBrush (tab.BackColor);
+ Brush brush = SystemBrushes.Control;
dc.FillRectangle (brush, area);
Rectangle panel_rect = GetTabPanelRectExt (tab);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches