aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Engine/WindowManager.cs
diff options
context:
space:
mode:
authorAShifter <[email protected]>2017-03-27 13:32:59 -0600
committerAShifter <[email protected]>2017-03-27 13:32:59 -0600
commit5819bf69c300dfaefa427d701b3bef4a7397e0c9 (patch)
tree4ef2c5835f36e91c29aa493f9433628d879e5255 /TimeHACK.Engine/WindowManager.cs
parent9c2564364358c85eef94ea1ac600bf8190bf1b09 (diff)
parentb4025b4c6d675b1b86074fe9b4de89dc00ee9123 (diff)
downloadhistacom2-5819bf69c300dfaefa427d701b3bef4a7397e0c9.tar.gz
histacom2-5819bf69c300dfaefa427d701b3bef4a7397e0c9.tar.bz2
histacom2-5819bf69c300dfaefa427d701b3bef4a7397e0c9.zip
BURNED EVERYTHING
and cloned
Diffstat (limited to 'TimeHACK.Engine/WindowManager.cs')
-rw-r--r--TimeHACK.Engine/WindowManager.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/TimeHACK.Engine/WindowManager.cs b/TimeHACK.Engine/WindowManager.cs
index 8047a8c..c8a0de3 100644
--- a/TimeHACK.Engine/WindowManager.cs
+++ b/TimeHACK.Engine/WindowManager.cs
@@ -1,15 +1,17 @@
using System;
using TimeHACK.Engine.Template;
using System.Windows.Forms;
+using System.Drawing;
namespace TimeHACK.Engine
{
public class WindowManager
{
- public void StartWinClassic(UserControl content, String title, PictureBox icon, Boolean MaxButton, Boolean MinButton)
+ public void startWinClassic(UserControl content, String title, PictureBox icon, Boolean MaxButton, Boolean MinButton)
{
// Setup Window
WinClassic app = new WinClassic();
+ app.Text = title;
app.Title.Text = title;
app.Width = content.Width + 8;
app.Height = content.Height + 26;
@@ -23,16 +25,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 - 14, 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