aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Engine/WindowManager.cs
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-07-31 23:14:24 -0400
committerlempamo <[email protected]>2017-07-31 23:14:24 -0400
commitb4277f918f43801cc656c7df2066b95a2bb103a7 (patch)
treeae6f1d0cec63d5f7079ffd0c631867dfc8b22702 /TimeHACK.Engine/WindowManager.cs
parent92fedc467a77c709b157a0ec1666bd902ad8d27e (diff)
downloadhistacom2-b4277f918f43801cc656c7df2066b95a2bb103a7.tar.gz
histacom2-b4277f918f43801cc656c7df2066b95a2bb103a7.tar.bz2
histacom2-b4277f918f43801cc656c7df2066b95a2bb103a7.zip
added fixed size windows
Diffstat (limited to 'TimeHACK.Engine/WindowManager.cs')
-rw-r--r--TimeHACK.Engine/WindowManager.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/TimeHACK.Engine/WindowManager.cs b/TimeHACK.Engine/WindowManager.cs
index 41d1d02..e206303 100644
--- a/TimeHACK.Engine/WindowManager.cs
+++ b/TimeHACK.Engine/WindowManager.cs
@@ -10,7 +10,7 @@ namespace TimeHACK.Engine
{
public static System.Drawing.Text.PrivateFontCollection pfc = new System.Drawing.Text.PrivateFontCollection();
- public WinClassic StartWin95(UserControl content, string title, Image icon, bool MaxButton, bool MinButton, bool ShowApplicationAsDialog = false)
+ public WinClassic StartWin95(UserControl content, string title, Image icon, bool MaxButton, bool MinButton, bool ShowApplicationAsDialog = false, bool resize = true)
{
// Setup Window
WinClassic app = new WinClassic();
@@ -51,6 +51,9 @@ namespace TimeHACK.Engine
app.minimizebutton.Location = new Point(app.minimizebutton.Location.X, app.minimizebutton.Location.Y);
}
+ //Resize
+ app.resizable = resize;
+
// Time for the colors
app.programtopbar.BackColor = SaveSystem.currentTheme.activeTitleBarColor;
app.Title.ForeColor = SaveSystem.currentTheme.activeTitleTextColor;
@@ -81,7 +84,7 @@ namespace TimeHACK.Engine
app.infoText.Text = text;
app.infoText.Font = new Font(pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0)));
- return StartWin95(app, title, null, false, false);
+ return StartWin95(app, title, null, false, false, resize: false);
}
public WinClassic StartAboutBox95(string shortname, string longname, Image appicon)
@@ -91,7 +94,7 @@ namespace TimeHACK.Engine
uc.textBox1.Text = longname + "\r\nWindows 95\r\nCopyright © 1981-1995 Microsoft Corp.";
uc.Font = new Font(pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0)));
- return StartWin95(uc, "About " + shortname, null, false, false);
+ return StartWin95(uc, "About " + shortname, null, false, false, resize: false);
}
}
}