Author: andreia
Date: 2007-05-04 14:19:33 -0400 (Fri, 04 May 2007)
New Revision: 76715
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Theming/Default/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Theming/Default/TabControlPainter.cs
Log:
* TabControlPainter.cs: Use ControlPaint static methods
instead of ThemeEngine ones (seeing as they're there and
all :p )
2007-05-04 Andreia Gaita <[EMAIL PROTECTED]>
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-05-04 18:13:13 UTC (rev 76714)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Theming/Default/ChangeLog
2007-05-04 18:19:33 UTC (rev 76715)
@@ -1,3 +1,9 @@
+2007-05-04 Andreia Gaita <[EMAIL PROTECTED]>
+
+ * TabControlPainter.cs: Use ControlPaint static methods
+ instead of ThemeEngine ones (seeing as they're there and
+ all :p )
+
2007-04-15 Andreia Gaita <[EMAIL PROTECTED]>
* ButtonPainter.cs: refactoring of the button drawing
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Theming/Default/TabControlPainter.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Theming/Default/TabControlPainter.cs
2007-05-04 18:13:13 UTC (rev 76714)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Theming/Default/TabControlPainter.cs
2007-05-04 18:19:33 UTC (rev 76715)
@@ -263,8 +263,8 @@
Rectangle panel_rect = GetTabPanelRect (tab);
if (tab.Appearance == TabAppearance.Normal) {
- ThemeEngine.Current.CPDrawBorder3D (dc,
panel_rect, Border3DStyle.RaisedInner, Border3DSide.Left | Border3DSide.Top,
ThemeEngine.Current.ColorControl);
- ThemeEngine.Current.CPDrawBorder3D (dc,
panel_rect, Border3DStyle.Raised, Border3DSide.Right | Border3DSide.Bottom,
ThemeEngine.Current.ColorControl);
+ ControlPaint.DrawBorder3D (dc, panel_rect,
Border3DStyle.RaisedInner, Border3DSide.Left | Border3DSide.Top);
+ ControlPaint.DrawBorder3D (dc, panel_rect,
Border3DStyle.Raised, Border3DSide.Right | Border3DSide.Bottom);
}
int start = 0;
@@ -299,8 +299,8 @@
if (tab.ShowSlider) {
Rectangle right = GetRightScrollRect (tab);
Rectangle left = GetLeftScrollRect (tab);
- ThemeEngine.Current.CPDrawScrollButton (dc,
right, ScrollButton.Right, tab.RightSliderState);
- ThemeEngine.Current.CPDrawScrollButton (dc,
left, ScrollButton.Left, tab.LeftSliderState);
+ ControlPaint.DrawScrollButton (dc, right,
ScrollButton.Right, tab.RightSliderState);
+ ControlPaint.DrawScrollButton (dc, left,
ScrollButton.Left, tab.LeftSliderState);
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches