diff options
| author | lempamo <[email protected]> | 2017-09-12 09:51:26 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-09-12 09:51:26 -0400 |
| commit | ab9f118edb06826ed49c0b46bb1bce38d407e4f6 (patch) | |
| tree | 63e46f589ac10f4df5806c5d2ecb4c104adaed92 /Histacom2.Engine/UI/ClassicLabel.cs | |
| parent | c11ba68e8f319acc62b72259235a04b12892bffa (diff) | |
| download | histacom2-ab9f118edb06826ed49c0b46bb1bce38d407e4f6.tar.gz histacom2-ab9f118edb06826ed49c0b46bb1bce38d407e4f6.tar.bz2 histacom2-ab9f118edb06826ed49c0b46bb1bce38d407e4f6.zip | |
various classic control things
Diffstat (limited to 'Histacom2.Engine/UI/ClassicLabel.cs')
| -rw-r--r-- | Histacom2.Engine/UI/ClassicLabel.cs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Histacom2.Engine/UI/ClassicLabel.cs b/Histacom2.Engine/UI/ClassicLabel.cs new file mode 100644 index 0000000..0b9d9c2 --- /dev/null +++ b/Histacom2.Engine/UI/ClassicLabel.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Diagnostics; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Histacom2.Engine.UI +{ + public class ClassicLabel : Control + { + public ClassicLabel() + { + + } + + protected override void OnPaint(PaintEventArgs e) + { + base.OnPaint(e); + var gfx = e.Graphics; + gfx.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SingleBitPerPixelGridFit; + + gfx.DrawString(Text, Font, new SolidBrush(ForeColor), 0, 0); + } + } +} |
