aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Engine/WindowManager.cs
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-03-26 20:10:32 -0400
committerlempamo <[email protected]>2017-03-26 20:10:32 -0400
commit83f1652ca5bd6c1fdfbebb70c41fef2e31d17b7d (patch)
tree16a37b1ce68466a51f56f354b98c8b95ce931a59 /TimeHACK.Engine/WindowManager.cs
parentf16f3a8a3df33f46c4ec6c864447cced97c0f034 (diff)
parentf3ded1683916137c4d625565266f915492b2d4ad (diff)
downloadhistacom2-83f1652ca5bd6c1fdfbebb70c41fef2e31d17b7d.tar.gz
histacom2-83f1652ca5bd6c1fdfbebb70c41fef2e31d17b7d.tar.bz2
histacom2-83f1652ca5bd6c1fdfbebb70c41fef2e31d17b7d.zip
Merge remote-tracking branch 'refs/remotes/TimeHACKDevs/master'
Diffstat (limited to 'TimeHACK.Engine/WindowManager.cs')
-rw-r--r--TimeHACK.Engine/WindowManager.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/TimeHACK.Engine/WindowManager.cs b/TimeHACK.Engine/WindowManager.cs
index fc9bd94..52a74d1 100644
--- a/TimeHACK.Engine/WindowManager.cs
+++ b/TimeHACK.Engine/WindowManager.cs
@@ -1,6 +1,7 @@
using System;
using TimeHACK.Engine.Template;
using System.Windows.Forms;
+using System.Drawing;
namespace TimeHACK.Engine
{
@@ -23,16 +24,18 @@ namespace TimeHACK.Engine
}
app.programIcon.Image = icon.Image;
- // Check if Max button is enabled
+ // Check if Max button is enabled and set proper X for Min button
if (MaxButton == false)
{
app.maximizebutton.Visible = false;
+ app.minimizebutton.Location = new Point(app.closebutton.Location.X - 16, app.minimizebutton.Location.Y);
}
// Check if Min button is enabled
if (MinButton == false)
{
app.minimizebutton.Visible = false;
+ app.minimizebutton.Location = new Point(app.minimizebutton.Location.X, app.minimizebutton.Location.Y);
}
// Show the app