diff options
| author | lempamo <[email protected]> | 2017-09-06 00:26:22 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-09-06 00:26:22 -0400 |
| commit | 584789ed8a37027db496d6c90873186fe461f021 (patch) | |
| tree | 8dbd779e381f2611af1e169fbd422869fae63574 /Histacom2.Engine/UI | |
| parent | d2c331962d3d102022f41b8c7d449e85767b2d35 (diff) | |
| download | histacom2-584789ed8a37027db496d6c90873186fe461f021.tar.gz histacom2-584789ed8a37027db496d6c90873186fe461f021.tar.bz2 histacom2-584789ed8a37027db496d6c90873186fe461f021.zip | |
a little modification
Diffstat (limited to 'Histacom2.Engine/UI')
| -rw-r--r-- | Histacom2.Engine/UI/ClassicButton.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Histacom2.Engine/UI/ClassicButton.cs b/Histacom2.Engine/UI/ClassicButton.cs index 717a6ce..b761504 100644 --- a/Histacom2.Engine/UI/ClassicButton.cs +++ b/Histacom2.Engine/UI/ClassicButton.cs @@ -59,7 +59,7 @@ namespace Histacom2.Engine.UI g.FillRectangle(new SolidBrush(_darkBack), new Rectangle(1, 1, Width - 2, Height - 2)); g.FillRectangle(new SolidBrush(BackColor), new Rectangle(2, 2, Width - 3, Height - 3)); - g.DrawString(Text, _font, new SolidBrush(ForeColor), ((Width / 2) + 1) + Padding.Left, (Height / 2) - (g.MeasureString(Text, Font).Height / 2) + 3, sf); + g.DrawString(Text, _font, new SolidBrush(ForeColor), ((Width / 2) + 1) + Padding.Left, (Height / 2) - (g.MeasureString(Text, Font).Height / 2) + 2, sf); } else { @@ -68,7 +68,7 @@ namespace Histacom2.Engine.UI g.FillRectangle(new SolidBrush(_darkBack), new Rectangle(1, 1, Width - 2, Height - 2)); g.FillRectangle(new SolidBrush(BackColor), new Rectangle(1, 1, Width - 3, Height - 3)); - g.DrawString(Text, _font, new SolidBrush(ForeColor), (Width / 2) + Padding.Left, (Height / 2) - (g.MeasureString(Text, Font).Height / 2) + 2, sf); + g.DrawString(Text, _font, new SolidBrush(ForeColor), (Width / 2) + Padding.Left, (Height / 2) - (g.MeasureString(Text, Font).Height / 2) + 1, sf); } } |
