From 486d33b73a8beec3c1080cf5c501ceeafcddc4fa Mon Sep 17 00:00:00 2001 From: lempamo Date: Sun, 9 Apr 2017 19:38:33 -0400 Subject: about boxes! --- TimeHACK.Engine/WindowManager.cs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'TimeHACK.Engine/WindowManager.cs') diff --git a/TimeHACK.Engine/WindowManager.cs b/TimeHACK.Engine/WindowManager.cs index 4c1eefe..611d09e 100644 --- a/TimeHACK.Engine/WindowManager.cs +++ b/TimeHACK.Engine/WindowManager.cs @@ -29,7 +29,12 @@ namespace TimeHACK.Engine content.Dock = DockStyle.Fill; // Check if icon is null - if (icon == null) app.programIcon.Image = Engine.Properties.Resources.nullIcon; + if (icon == null) + { + app.programIcon.Hide(); + app.programIcon.Image = Engine.Properties.Resources.nullIcon; + app.Title.Location = new Point(2, 1); + } else app.programIcon.Image = icon; // Check if Max button is enabled and set proper X for Min button @@ -63,5 +68,15 @@ namespace TimeHACK.Engine app.Show(); return app; } + + public WinClassic startAboutBox95(String aboutwhat, String fulltitle, Image appicon) + { + AboutBox95 uc = new AboutBox95(); + uc.pictureBox1.Image = appicon; + uc.textBox1.Text = fulltitle + "\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 " + aboutwhat, null, false, false); + } } } -- cgit v1.2.3