From 67ebd962d2579270b8516b3d5ad53f00db690c62 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Thu, 19 May 2005 20:22:57 +0000 Subject: [PATCH] * ThemeWin32Classic.cs: Draw the text for button tabs. svn path=/trunk/mcs/; revision=44759 --- .../System.Windows.Forms/ChangeLog | 4 ++++ .../System.Windows.Forms/ThemeWin32Classic.cs | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog index 4df581f909d..190300725d6 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog @@ -1,3 +1,7 @@ +2005-05-19 Jackson Harper + + * ThemeWin32Classic.cs: Draw the text for button tabs. + 2005-05-19 Jackson Harper * Control.cs: Paint control background images. Fix typo where 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 d74fbefd24b..be1caa12af3 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs @@ -2998,6 +2998,16 @@ namespace System.Windows.Forms } interior = new Rectangle (bounds.Left + 2, bounds.Top + 2, bounds.Width - 4, bounds.Height - 4); + + + StringFormat string_format = new StringFormat (); + string_format.Alignment = StringAlignment.Center; + string_format.LineAlignment = StringAlignment.Center; + string_format.FormatFlags = StringFormatFlags.NoWrap; + + interior.Y++; + dc.DrawString (page.Text, page.Font, ThemeEngine.Current.ResPool.GetSolidBrush (SystemColors.ControlText), interior, string_format); + interior.Y--; } else { Pen light = ResPool.GetPen (ControlPaint.LightLight (tab.BackColor)); -- 2.25.1