Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs/class
diff options
context:
space:
mode:
authorCarlos Alberto Cortez <calberto.cortez@gmail.com>2007-09-08 12:45:55 +0400
committerCarlos Alberto Cortez <calberto.cortez@gmail.com>2007-09-08 12:45:55 +0400
commit42abc54b2bcda766861adfb36b106a39db915993 (patch)
tree00dc2241968e39ec9052ce3e80d72683ef32f546 /mcs/class
parent20c41b91d667015ee2c28abb3ddacf45cd7faa99 (diff)
* 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 <calberto.cortez@gmail.com> svn path=/trunk/mcs/; revision=85515
Diffstat (limited to 'mcs/class')
-rw-r--r--mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog7
-rw-r--r--mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs4
-rw-r--r--mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs4
3 files changed, 11 insertions, 4 deletions
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
index 3364219e23b..5ce1c29d260 100644
--- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
+++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
@@ -1,5 +1,12 @@
2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
+ * 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 <calberto.cortez@gmail.com>
+
Patch by Ernesto Carrea <equistango at gmail.com>. Partially
fixes #82734.
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs
index f36dd2b7916..8c32952b8f3 100644
--- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs
+++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs
@@ -152,9 +152,9 @@ namespace System.Windows.Forms
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;
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
index dc00c528b2c..0d1cbb1c984 100644
--- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
+++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
@@ -2553,8 +2553,8 @@ namespace System.Windows.Forms
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;