diff options
Diffstat (limited to 'TimeHACK.Engine/WindowManager.cs')
| -rw-r--r-- | TimeHACK.Engine/WindowManager.cs | 17 |
1 files changed, 16 insertions, 1 deletions
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); + } } } |
