AppliStation
修订版 | 241a242e5a68275045ffdab6a845af33954e3c39 (tree) |
---|---|
时间 | 2009-06-14 12:52:12 |
作者 | ttp <ttp@user...> |
Commiter | ttp |
AppliStation-GUI,進捗ダイアログでログ表示のテキストボックスが自動でスクロールするように(修正)
@@ -89,8 +89,6 @@ namespace AppliStation.Util | ||
89 | 89 | { |
90 | 90 | NaGetTaskSet taskSet = (NaGetTaskSet) sender; |
91 | 91 | |
92 | - bool isCursorPositionLast = logBox.SelectionStart >= logBox.TextLength-1; | |
93 | - | |
94 | 92 | if (e.TaskProgressPercent >= 0) { |
95 | 93 | progressBar.Value = (int) e.TaskProgressPercent; |
96 | 94 | progressBar.Style = ProgressBarStyle.Continuous; |
@@ -161,9 +159,9 @@ namespace AppliStation.Util | ||
161 | 159 | break; |
162 | 160 | } |
163 | 161 | |
164 | - if (isCursorPositionLast && logBox.TextLength > 0) { | |
165 | - logBox.Select(logBox.TextLength-1, 0); | |
166 | - } | |
162 | + #if DEBUG | |
163 | + logBox.ScrollToCaret(); | |
164 | + #endif | |
167 | 165 | |
168 | 166 | if (taskSet.Done) { |
169 | 167 | if ((ActionOnDone & ActionOnDoneFlags.FlashWindow) != 0) { |