Author: calberto
Date: 2007-09-08 04:45:55 -0400 (Sat, 08 Sep 2007)
New Revision: 85515
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
Log:
* ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
to match .Net.
* ThemeWin32Classic.cs: For the columns text, use 5 pixels as left
padding
instead of 8, just like above. Partially fixes #82734.
2007-09-08 Carlos Alberto Cortez <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-09-08 08:39:05 UTC (rev 85514)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-09-08 08:45:55 UTC (rev 85515)
@@ -1,5 +1,12 @@
2007-09-08 Carlos Alberto Cortez <[EMAIL PROTECTED]>
+ * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
+ to match .Net.
+ * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left
padding
+ instead of 8, just like above. Partially fixes #82734.
+
+2007-09-08 Carlos Alberto Cortez <[EMAIL PROTECTED]>
+
Patch by Ernesto Carrea <equistango at gmail.com>. Partially
fixes #82734.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs
2007-09-08 08:39:05 UTC (rev 85514)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs
2007-09-08 08:45:55 UTC (rev 85515)
@@ -152,9 +152,9 @@
format.FormatFlags = StringFormatFlags.NoWrap;
if (owner != null)
- column_rect.Height = owner.Font.Height + 8;
+ column_rect.Height = owner.Font.Height + 5;
else
- column_rect.Height =
ThemeEngine.Current.DefaultFont.Height + 8;
+ column_rect.Height =
ThemeEngine.Current.DefaultFont.Height + 5;
if (width >= 0)
column_rect.Width = width;
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
2007-09-08 08:39:05 UTC (rev 85514)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
2007-09-08 08:45:55 UTC (rev 85515)
@@ -2553,8 +2553,8 @@
else
state =
ButtonState.Flat;
CPDrawButton (dc, rect, state);
- rect.X += 8;
- rect.Width -= 13;
+ rect.X += 5;
+ rect.Width -= 10;
if (rect.Width <= 0)
continue;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches