Author: jackson
Date: 2005-03-18 13:56:09 -0500 (Fri, 18 Mar 2005)
New Revision: 42003
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: Use the proper func for drawing the focus
rect, make sure to de-adjust the interior rect after drawing the
tab text.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-03-18 18:12:17 UTC (rev 42002)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-03-18 18:56:09 UTC (rev 42003)
@@ -1,3 +1,9 @@
+2005-03-18 Jackson Harper <[EMAIL PROTECTED]>
+
+ * ThemeWin32Classic.cs: Use the proper func for drawing the focus
+ rect, make sure to de-adjust the interior rect after drawing the
+ tab text.
+
2005-03-18 Peter Bartok <[EMAIL PROTECTED]>
* MenuAPI.cs: Remove menu *before* executing selected action to
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
2005-03-18 18:12:17 UTC (rev 42002)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
2005-03-18 18:56:09 UTC (rev 42003)
@@ -2984,6 +2984,7 @@
string_format.FormatFlags =
StringFormatFlags.NoWrap;
interior.Y++;
dc.DrawString (page.Text,
page.Font, new SolidBrush (SystemColors.ControlText), interior, string_format);
+ interior.Y--;
}
break;
@@ -3011,6 +3012,7 @@
string_format.FormatFlags =
StringFormatFlags.NoWrap;
interior.Y++;
dc.DrawString (page.Text,
page.Font, new SolidBrush (SystemColors.ControlText), interior, string_format);
+ interior.Y--;
}
break;
@@ -3071,6 +3073,7 @@
string_format.FormatFlags =
StringFormatFlags.DirectionVertical;
interior.X++;
dc.DrawString (page.Text,
page.Font, new SolidBrush (SystemColors.ControlText), interior, string_format);
+ interior.X--;
}
break;
@@ -3078,10 +3081,7 @@
}
if (page.Focused) {
- using (Pen pen = new Pen (Color.Black, 1) ) {
- pen.DashStyle = DashStyle.Dot;
- dc.DrawRectangle (pen, interior);
- }
+ CPDrawFocusRectangle (dc, interior,
tab.ForeColor, tab.BackColor);
}
return res;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches