diff options
| author | lempamo <[email protected]> | 2017-07-01 22:49:31 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-07-01 22:49:31 -0400 |
| commit | c75aea5a35405b81de4f9ee679ed415cdc0fdeef (patch) | |
| tree | 90ffcb9f3504e59ed1aeaf58d0f87ed7a5e103ee /TimeHACK.Engine | |
| parent | 311d896ca59155f4a1cd80921cd76c548937367a (diff) | |
| download | histacom2-c75aea5a35405b81de4f9ee679ed415cdc0fdeef.tar.gz histacom2-c75aea5a35405b81de4f9ee679ed415cdc0fdeef.tar.bz2 histacom2-c75aea5a35405b81de4f9ee679ed415cdc0fdeef.zip | |
a few improved things
Diffstat (limited to 'TimeHACK.Engine')
| -rw-r--r-- | TimeHACK.Engine/Paintbrush.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/TimeHACK.Engine/Paintbrush.cs b/TimeHACK.Engine/Paintbrush.cs index 2b640cf..9b94ad8 100644 --- a/TimeHACK.Engine/Paintbrush.cs +++ b/TimeHACK.Engine/Paintbrush.cs @@ -10,8 +10,16 @@ namespace TimeHACK.Engine { public class Paintbrush { - public static void paintClassicBorders(object sender, PaintEventArgs e, int borderwidth) + public enum BGStyle { + NoChange, + Silver, + XP + } + + public static void paintClassicBorders(object sender, PaintEventArgs e, int borderwidth, BGStyle bg) + { + ((Control)sender).BackColor = Color.Silver; ControlPaint.DrawBorder(e.Graphics, ((Control)sender).ClientRectangle, SystemColors.ControlLightLight, borderwidth, ButtonBorderStyle.Outset, SystemColors.ControlLightLight, borderwidth, ButtonBorderStyle.Outset, |
