OSDN Git Service

AppliStation-GUI,進捗ダイアログのログテキスト表示領域がインストーラーファイルをダウンロードしているときに表示領域がカクカクする不具合を修正(その2)
authorttp <ttp@users.sourceforge.jp>
Mon, 11 Oct 2010 05:04:46 +0000 (14:04 +0900)
committerttp <ttp@users.sourceforge.jp>
Mon, 11 Oct 2010 05:06:12 +0000 (14:06 +0900)
AppliStation/AppliStation.Util/ExecutionProgressViewer.Designer.cs
AppliStation/AppliStation.Util/ExecutionProgressViewer.cs

index 1ea482d..4946a84 100644 (file)
@@ -175,6 +175,7 @@ namespace AppliStation.Util
                        this.logBox.Size = new System.Drawing.Size(438, 159);\r
                        this.logBox.TabIndex = 8;\r
                        this.logBox.Text = "";\r
                        this.logBox.Size = new System.Drawing.Size(438, 159);\r
                        this.logBox.TabIndex = 8;\r
                        this.logBox.Text = "";\r
+                       this.logBox.TextChanged += new System.EventHandler(this.LogBoxTextChanged);\r
                        // \r
                        // autoCloseTimer\r
                        // \r
                        // \r
                        // autoCloseTimer\r
                        // \r
index 1d7fd04..4a746af 100644 (file)
@@ -168,9 +168,6 @@ namespace AppliStation.Util
                                NativeMethods.Form_SetTaskbarProgressParams(this, progressBar.Style, progressState, 0, 0);\r
                        }\r
                        \r
                                NativeMethods.Form_SetTaskbarProgressParams(this, progressBar.Style, progressState, 0, 0);\r
                        }\r
                        \r
-                       logBox.Select(logBox.TextLength, 0);\r
-                       logBox.ScrollToCaret();\r
-                       \r
                        if (taskSet.Done) {\r
                                if ((ActionOnDone & ActionOnDoneFlags.FlashWindow) != 0) {\r
                                        NativeMethods.Form_FlashWindow(this,\r
                        if (taskSet.Done) {\r
                                if ((ActionOnDone & ActionOnDoneFlags.FlashWindow) != 0) {\r
                                        NativeMethods.Form_FlashWindow(this,\r
@@ -242,6 +239,12 @@ namespace AppliStation.Util
                \r
                #endregion\r
                \r
                \r
                #endregion\r
                \r
+               void LogBoxTextChanged(object sender, EventArgs e)\r
+               {       \r
+                       logBox.Select(logBox.TextLength, 0);\r
+                       logBox.ScrollToCaret();\r
+               }\r
+               \r
                void OkButtonClick(object sender, EventArgs e)\r
                {\r
                        if (taskSet == null || taskSet.Done) {\r
                void OkButtonClick(object sender, EventArgs e)\r
                {\r
                        if (taskSet == null || taskSet.Done) {\r