OSDN Git Service

AppliStation-GUI,進捗ダイアログのログテキスト表示領域がインストーラーファイルをダウンロードしているときに表示領域がカクカクする不具合を修正(その2...
[applistation/AppliStation.git] / AppliStation / AppliStation.Util / ExecutionProgressViewer.cs
index 4c56ad7..a9f5f78 100644 (file)
@@ -168,8 +168,6 @@ namespace AppliStation.Util
                                NativeMethods.Form_SetTaskbarProgressParams(this, progressBar.Style, progressState, 0, 0);\r
                        }\r
                        \r
-                       logBox.ScrollToCaret();\r
-                       \r
                        if (taskSet.Done) {\r
                                if ((ActionOnDone & ActionOnDoneFlags.FlashWindow) != 0) {\r
                                        NativeMethods.Form_FlashWindow(this,\r
@@ -241,6 +239,17 @@ namespace AppliStation.Util
                \r
                #endregion\r
                \r
+               void LogBoxTextChanged(object sender, EventArgs e)\r
+               {       \r
+                       logBox.Select(logBox.TextLength, 0);\r
+                       logBox.ScrollToCaret();\r
+               }\r
+               \r
+               void LogBoxTextLayouted(object sender, LayoutEventArgs e)\r
+               {\r
+                       logBox.ScrollToCaret();\r
+               }\r
+               \r
                void OkButtonClick(object sender, EventArgs e)\r
                {\r
                        if (taskSet == null || taskSet.Done) {\r