OSDN Git Service

WinGui:
authorsr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 5 Jul 2009 16:42:33 +0000 (16:42 +0000)
committersr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 5 Jul 2009 16:42:33 +0000 (16:42 +0000)
- Minor UI fixes related to update checking and window maximize / scrolling

git-svn-id: svn://localhost/HandBrake/trunk@2667 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/C#/frmMain.Designer.cs
win/C#/frmMain.cs

index 4c19ff4..29a0f87 100644 (file)
@@ -1291,16 +1291,18 @@ namespace Handbrake
             // \r
             // lbl_encode\r
             // \r
+            this.lbl_encode.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
             this.lbl_encode.Name = "lbl_encode";\r
-            this.lbl_encode.Size = new System.Drawing.Size(23, 17);\r
+            this.lbl_encode.Size = new System.Drawing.Size(28, 17);\r
             this.lbl_encode.Text = "{0}";\r
             // \r
             // lbl_updateCheck\r
             // \r
             this.lbl_updateCheck.BackColor = System.Drawing.Color.Transparent;\r
             this.lbl_updateCheck.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;\r
+            this.lbl_updateCheck.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
             this.lbl_updateCheck.Name = "lbl_updateCheck";\r
-            this.lbl_updateCheck.Size = new System.Drawing.Size(125, 17);\r
+            this.lbl_updateCheck.Size = new System.Drawing.Size(139, 17);\r
             this.lbl_updateCheck.Text = "Checking for Updates ...";\r
             this.lbl_updateCheck.Visible = false;\r
             // \r
@@ -1556,7 +1558,6 @@ namespace Handbrake
             this.AllowDrop = true;\r
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);\r
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\r
-            this.AutoScroll = true;\r
             this.ClientSize = new System.Drawing.Size(1000, 582);\r
             this.Controls.Add(this.labelStaticSource);\r
             this.Controls.Add(this.labelSource);\r
@@ -1573,7 +1574,6 @@ namespace Handbrake
             this.DoubleBuffered = true;\r
             this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));\r
-            this.MaximizeBox = false;\r
             this.Name = "frmMain";\r
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;\r
             this.Text = "HandBrake";\r
index 69e850a..1b215b3 100644 (file)
@@ -389,6 +389,7 @@ namespace Handbrake
         }\r
         private void mnu_UpdateCheck_Click(object sender, EventArgs e)\r
         {\r
+            lbl_updateCheck.Visible = true;\r
             Main.BeginCheckForUpdates(new AsyncCallback(updateCheckDoneMenu), false);\r
         }\r
         private void updateCheckDoneMenu(IAsyncResult result)\r
@@ -399,14 +400,12 @@ namespace Handbrake
                 Invoke(new MethodInvoker(() => updateCheckDoneMenu(result)));\r
                 return;\r
             }\r
-\r
             UpdateCheckInformation info;\r
-\r
             try\r
             {\r
                 // Get the information about the new build, if any, and close the window\r
                 info = Main.EndCheckForUpdates(result);\r
-                lbl_updateCheck.Visible = true;\r
+                \r
                 if (info.NewVersionAvailable && info.BuildInformation != null)\r
                 {\r
                     frmUpdater updateWindow = new frmUpdater(info.BuildInformation);\r