From 9c2564364358c85eef94ea1ac600bf8190bf1b09 Mon Sep 17 00:00:00 2001 From: AShifter Date: Mon, 27 Mar 2017 12:38:53 -0600 Subject: Added Maximize TiemHARK - Now with a working maximize button! (and moar honeyfries) --- TimeHACK.Engine/Template/WinClassic.Designer.cs | 29 +++++++++++---------- TimeHACK.Engine/Template/WinClassic.cs | 2 ++ TimeHACK.Engine/bin/Debug/TimeHACK.Engine.dll | Bin 21504 -> 21504 bytes TimeHACK.Engine/bin/Debug/TimeHACK.Engine.pdb | Bin 26112 -> 26112 bytes .../TimeHACK.Engine.csproj.GenerateResource.Cache | Bin 1838 -> 1838 bytes TimeHACK.Engine/obj/Debug/TimeHACK.Engine.dll | Bin 21504 -> 21504 bytes TimeHACK.Engine/obj/Debug/TimeHACK.Engine.pdb | Bin 26112 -> 26112 bytes 7 files changed, 17 insertions(+), 14 deletions(-) (limited to 'TimeHACK.Engine') diff --git a/TimeHACK.Engine/Template/WinClassic.Designer.cs b/TimeHACK.Engine/Template/WinClassic.Designer.cs index 1240979..317a1d8 100644 --- a/TimeHACK.Engine/Template/WinClassic.Designer.cs +++ b/TimeHACK.Engine/Template/WinClassic.Designer.cs @@ -32,6 +32,7 @@ this.program = new System.Windows.Forms.Panel(); this.programContent = new System.Windows.Forms.Panel(); this.programtopbar = new System.Windows.Forms.Panel(); + this.programIcon = new System.Windows.Forms.PictureBox(); this.maximizebutton = new System.Windows.Forms.PictureBox(); this.minimizebutton = new System.Windows.Forms.PictureBox(); this.Title = new System.Windows.Forms.Label(); @@ -44,13 +45,12 @@ this.bottom = new System.Windows.Forms.Panel(); this.right = new System.Windows.Forms.Panel(); this.top = new System.Windows.Forms.Panel(); - this.programIcon = new System.Windows.Forms.PictureBox(); this.program.SuspendLayout(); this.programtopbar.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.programIcon)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.maximizebutton)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.minimizebutton)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.closebutton)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.programIcon)).BeginInit(); this.SuspendLayout(); // // program @@ -95,6 +95,17 @@ this.programtopbar.TabIndex = 0; this.programtopbar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Programtopbar_drag); // + // programIcon + // + this.programIcon.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.programIcon.ErrorImage = null; + this.programIcon.InitialImage = null; + this.programIcon.Location = new System.Drawing.Point(2, 1); + this.programIcon.Name = "programIcon"; + this.programIcon.Size = new System.Drawing.Size(16, 16); + this.programIcon.TabIndex = 0; + this.programIcon.TabStop = false; + // // maximizebutton // this.maximizebutton.Anchor = System.Windows.Forms.AnchorStyles.Right; @@ -126,6 +137,7 @@ this.Title.Size = new System.Drawing.Size(99, 13); this.Title.TabIndex = 3; this.Title.Text = "Application Title"; + this.Title.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Programtopbar_drag); // // closebutton // @@ -214,17 +226,6 @@ this.top.Size = new System.Drawing.Size(300, 4); this.top.TabIndex = 8; // - // programIcon - // - this.programIcon.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.programIcon.ErrorImage = null; - this.programIcon.InitialImage = null; - this.programIcon.Location = new System.Drawing.Point(2, 1); - this.programIcon.Name = "programIcon"; - this.programIcon.Size = new System.Drawing.Size(16, 16); - this.programIcon.TabIndex = 0; - this.programIcon.TabStop = false; - // // WinClassic // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -237,10 +238,10 @@ this.program.ResumeLayout(false); this.programtopbar.ResumeLayout(false); this.programtopbar.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.programIcon)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.maximizebutton)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.minimizebutton)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.closebutton)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.programIcon)).EndInit(); this.ResumeLayout(false); } diff --git a/TimeHACK.Engine/Template/WinClassic.cs b/TimeHACK.Engine/Template/WinClassic.cs index 820bbb8..f77a850 100644 --- a/TimeHACK.Engine/Template/WinClassic.cs +++ b/TimeHACK.Engine/Template/WinClassic.cs @@ -49,6 +49,7 @@ namespace TimeHACK.Engine.Template this.topleftcorner.Hide(); this.toprightcorner.Hide(); this.Dock = DockStyle.Fill; + this.WindowState = FormWindowState.Maximized; max = true; maximizebutton.Image = Properties.Resources.WinClassicRestore; } @@ -63,6 +64,7 @@ namespace TimeHACK.Engine.Template this.topleftcorner.Show(); this.toprightcorner.Show(); this.Dock = DockStyle.None; + this.WindowState = FormWindowState.Normal; max = false; maximizebutton.Image = Properties.Resources.WinClassicMax; } diff --git a/TimeHACK.Engine/bin/Debug/TimeHACK.Engine.dll b/TimeHACK.Engine/bin/Debug/TimeHACK.Engine.dll index 9074301..973b44a 100644 Binary files a/TimeHACK.Engine/bin/Debug/TimeHACK.Engine.dll and b/TimeHACK.Engine/bin/Debug/TimeHACK.Engine.dll differ diff --git a/TimeHACK.Engine/bin/Debug/TimeHACK.Engine.pdb b/TimeHACK.Engine/bin/Debug/TimeHACK.Engine.pdb index b95db11..d243d4d 100644 Binary files a/TimeHACK.Engine/bin/Debug/TimeHACK.Engine.pdb and b/TimeHACK.Engine/bin/Debug/TimeHACK.Engine.pdb differ diff --git a/TimeHACK.Engine/obj/Debug/TimeHACK.Engine.csproj.GenerateResource.Cache b/TimeHACK.Engine/obj/Debug/TimeHACK.Engine.csproj.GenerateResource.Cache index f99e456..0c613b4 100644 Binary files a/TimeHACK.Engine/obj/Debug/TimeHACK.Engine.csproj.GenerateResource.Cache and b/TimeHACK.Engine/obj/Debug/TimeHACK.Engine.csproj.GenerateResource.Cache differ diff --git a/TimeHACK.Engine/obj/Debug/TimeHACK.Engine.dll b/TimeHACK.Engine/obj/Debug/TimeHACK.Engine.dll index 9074301..973b44a 100644 Binary files a/TimeHACK.Engine/obj/Debug/TimeHACK.Engine.dll and b/TimeHACK.Engine/obj/Debug/TimeHACK.Engine.dll differ diff --git a/TimeHACK.Engine/obj/Debug/TimeHACK.Engine.pdb b/TimeHACK.Engine/obj/Debug/TimeHACK.Engine.pdb index b95db11..d243d4d 100644 Binary files a/TimeHACK.Engine/obj/Debug/TimeHACK.Engine.pdb and b/TimeHACK.Engine/obj/Debug/TimeHACK.Engine.pdb differ -- cgit v1.2.3