aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Engine/Paintbrush.cs
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-07-01 22:36:17 -0400
committerlempamo <[email protected]>2017-07-01 22:36:17 -0400
commit311d896ca59155f4a1cd80921cd76c548937367a (patch)
treecd0a007d845262caa893d508c6a3a6bdffab0e61 /TimeHACK.Engine/Paintbrush.cs
parent4af9777601e85fa948bf2e246798f60f6eae2f49 (diff)
downloadhistacom2-311d896ca59155f4a1cd80921cd76c548937367a.tar.gz
histacom2-311d896ca59155f4a1cd80921cd76c548937367a.tar.bz2
histacom2-311d896ca59155f4a1cd80921cd76c548937367a.zip
paint it black (on the bottom and right)
Diffstat (limited to 'TimeHACK.Engine/Paintbrush.cs')
-rw-r--r--TimeHACK.Engine/Paintbrush.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/TimeHACK.Engine/Paintbrush.cs b/TimeHACK.Engine/Paintbrush.cs
new file mode 100644
index 0000000..2b640cf
--- /dev/null
+++ b/TimeHACK.Engine/Paintbrush.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace TimeHACK.Engine
+{
+ public class Paintbrush
+ {
+ public static void paintClassicBorders(object sender, PaintEventArgs e, int borderwidth)
+ {
+ ControlPaint.DrawBorder(e.Graphics, ((Control)sender).ClientRectangle,
+ SystemColors.ControlLightLight, borderwidth, ButtonBorderStyle.Outset,
+ SystemColors.ControlLightLight, borderwidth, ButtonBorderStyle.Outset,
+ SystemColors.ControlLightLight, borderwidth, ButtonBorderStyle.Outset,
+ SystemColors.ControlLightLight, borderwidth, ButtonBorderStyle.Outset);
+ }
+ }
+}