diff options
| author | lempamo <[email protected]> | 2017-04-09 19:38:33 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-04-09 19:38:33 -0400 |
| commit | 486d33b73a8beec3c1080cf5c501ceeafcddc4fa (patch) | |
| tree | f84d14bbcb4fdcae4e0ed414359e1d6674a08bdb /TimeHACK.Engine/WindowManager.cs | |
| parent | 5825e897515553ea4306ac3e41073f92501510a5 (diff) | |
| download | histacom2-486d33b73a8beec3c1080cf5c501ceeafcddc4fa.tar.gz histacom2-486d33b73a8beec3c1080cf5c501ceeafcddc4fa.tar.bz2 histacom2-486d33b73a8beec3c1080cf5c501ceeafcddc4fa.zip | |
about boxes!
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); + } } } |
