aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/TitleScreen.cs
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-07-02 16:10:38 +0100
committerAlex-TIMEHACK <[email protected]>2017-07-02 16:10:38 +0100
commit9d4a384d899702c01443872b75d182e810e3dac1 (patch)
tree3633465b1a52c525d292cccf5765abc4af4c6902 /TimeHACK.Main/TitleScreen.cs
parentda6e7a7e8b3d8944d9139d4e2bb3ecfa2122840b (diff)
parent69ae842e6e3193a27b0294f92784ef97eb69fb37 (diff)
downloadhistacom2-9d4a384d899702c01443872b75d182e810e3dac1.tar.gz
histacom2-9d4a384d899702c01443872b75d182e810e3dac1.tar.bz2
histacom2-9d4a384d899702c01443872b75d182e810e3dac1.zip
Updated!
# Conflicts: # TimeHACK.Main/OS/Win95/Win95.Designer.cs # TimeHACK.Main/OS/Win95/Win95.cs # TimeHACK.Main/Properties/Resources.resx # TimeHACK.Main/TimeHACK.Main.csproj
Diffstat (limited to 'TimeHACK.Main/TitleScreen.cs')
-rw-r--r--TimeHACK.Main/TitleScreen.cs29
1 files changed, 5 insertions, 24 deletions
diff --git a/TimeHACK.Main/TitleScreen.cs b/TimeHACK.Main/TitleScreen.cs
index 0e01d4c..54b680f 100644
--- a/TimeHACK.Main/TitleScreen.cs
+++ b/TimeHACK.Main/TitleScreen.cs
@@ -18,8 +18,6 @@ namespace TimeHACK
{
public static System.Drawing.Text.PrivateFontCollection pfc = new System.Drawing.Text.PrivateFontCollection();
- TimeHACK.Engine.Template.WinClassic borders = new TimeHACK.Engine.Template.WinClassic();
-
public static Windows95 frm95;
public static Windows98 frm98;
public static string username;
@@ -48,28 +46,6 @@ namespace TimeHACK
public TitleScreen()
{
InitializeComponent();
-
- // Add the WINDOWS BORDERS from the Window Manager
-
- FieldInfo f1 = typeof(Control).GetField("EventMouseDown",
- BindingFlags.Static | BindingFlags.NonPublic);
- object obj = f1.GetValue(borders.programtopbar);
- PropertyInfo pi = borders.programtopbar.GetType().GetProperty("Events",
- BindingFlags.NonPublic | BindingFlags.Instance);
- EventHandlerList list = (EventHandlerList)pi.GetValue(borders.programtopbar, null);
- list.RemoveHandler(obj, list[obj]);
-
- borders.programtopbar.MouseDown += new MouseEventHandler(TitleBarDrag);
- borders.programtopbar.Controls.Find("closebutton", false)[0].MouseClick += new MouseEventHandler(closeButton);
- borders.programtopbar.Controls.Find("maximizebutton", false)[0].MouseClick += new MouseEventHandler(MaximiseButton);
-
- this.Controls.Add(borders.programtopbar);
- this.Controls.Add(borders.top);
- this.Controls.Add(borders.right);
- this.Controls.Add(borders.left);
- this.Controls.Add(borders.bottom);
-
-
}
public void StartGame()
@@ -199,6 +175,11 @@ namespace TimeHACK
pfc.AddFontFile(Data + "\\LeviWindows.ttf");
pfc.AddFontFile(Data + "\\windows_command_prompt.ttf");
gameversion.Font = new Font(pfc.Families[0], 16F, FontStyle.Bold, GraphicsUnit.Point, (0));
+ ProgramsToolStripMenuItem.Font = new Font(pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
+ DocumentsToolStripMenuItem.Font = new Font(pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
+ SettingsToolStripMenuItem.Font = new Font(pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
+ HelpToolStripMenuItem.Font = new Font(pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
+ ShutdownToolStripMenuItem.Font = new Font(pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
// Start the VM Mode timer
vmModeTimer.Start();