diff options
| author | lempamo <[email protected]> | 2017-10-29 00:50:08 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-10-29 00:50:08 -0400 |
| commit | d73bed3a5e57dace6215d0dafc52cf16c19db0a9 (patch) | |
| tree | 30929514e95f76b328c0f182f986722c7d76a8ef /Histacom2.Engine/UI | |
| parent | b2e99d751dd7417599212df04c74cdeb60c6453e (diff) | |
| download | histacom2-d73bed3a5e57dace6215d0dafc52cf16c19db0a9.tar.gz histacom2-d73bed3a5e57dace6215d0dafc52cf16c19db0a9.tar.bz2 histacom2-d73bed3a5e57dace6215d0dafc52cf16c19db0a9.zip | |
making progress on bad ie6
Diffstat (limited to 'Histacom2.Engine/UI')
| -rw-r--r-- | Histacom2.Engine/UI/ClassicLabel.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Histacom2.Engine/UI/ClassicLabel.cs b/Histacom2.Engine/UI/ClassicLabel.cs index eba8dc6..60bd9b7 100644 --- a/Histacom2.Engine/UI/ClassicLabel.cs +++ b/Histacom2.Engine/UI/ClassicLabel.cs @@ -25,9 +25,11 @@ namespace Histacom2.Engine.UI base.OnPaint(e); var gfx = e.Graphics; if (BackColor != Color.Transparent) gfx.Clear(BackColor); + StringFormat sf = new StringFormat(); + sf.HotkeyPrefix = System.Drawing.Text.HotkeyPrefix.Show; gfx.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SingleBitPerPixelGridFit; - gfx.DrawString(Text, Font, new SolidBrush(ForeColor), ClientRectangle); + gfx.DrawString(Text, Font, new SolidBrush(ForeColor), ClientRectangle, sf); Height = (int)gfx.MeasureString(Text, Font, ClientRectangle.Width).Height; } |
