Skip to content

Commit

Permalink
レス表示欄末尾移動関連の処理を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
ggslyman committed Apr 20, 2014
1 parent 6762122 commit e8ea873
Show file tree
Hide file tree
Showing 9 changed files with 527 additions and 351 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@

##更新履歴

* 14/04/20 2.0.1 Rev.19
- ブックマークからスレを開いたときにレス表示欄を末尾まで移動するオプションおよび、レス表示欄の最下段までのスクロールボタンを追加

* 14/04/20 2.0.1 Rev.18
- レス表示領域の表示倍率ボタンと設定保存を追加

Expand Down
25 changes: 19 additions & 6 deletions SpeechCast/FormMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 15 additions & 5 deletions SpeechCast/FormMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -717,13 +717,18 @@ await Task.Run(() =>
// JavaScriptでの差分追加処理
if (webBrowser.Document != null)
{
Object[] objArray = new Object[1];
objArray[0] = UserConfig.magnification;
webBrowser.Document.InvokeScript("setZoom", objArray);
for (int idx = oldResCount; idx < responses.Count; idx++)
{
Object[] objArray = new Object[1];
objArray[0] = responses[idx].Html;
webBrowser.Document.InvokeScript("addRes", objArray);
objArray[0] = UserConfig.magnification;
webBrowser.Document.InvokeScript("setZoom", objArray);
}
if (moveScrollBottom)
{
webBrowser.Document.Window.ScrollTo(0, webBrowser.Document.Body.ScrollRectangle.Height);
moveScrollBottom = false;
}
}
}
Expand Down Expand Up @@ -1683,11 +1688,11 @@ private void AddBookmarkMenu(ToolStripItemCollection menuItems , Bookmarks.Folde

}
}

private bool moveScrollBottom = false;
private void toolStripMenuItemBookmark_Click(object sender, EventArgs e)
{
string url = (string) ((sender as ToolStripMenuItem).Tag);

if (UserConfig.enableMoveBottomFromBookmarks) moveScrollBottom = true;
toolStripTextBoxURL.Text = url;

GetFromURL();
Expand Down Expand Up @@ -2264,5 +2269,10 @@ private void toolStripButtonZoomInnResView_Click(object sender, EventArgs e)
objArray[0] = UserConfig.magnification;
webBrowser.Document.InvokeScript("setZoom", objArray);
}

private void toolStripButtonMoveBottom_Click(object sender, EventArgs e)
{
webBrowser.Document.Window.ScrollTo(0, webBrowser.Document.Body.ScrollRectangle.Height);
}
}
}
12 changes: 12 additions & 0 deletions SpeechCast/FormMain.resx
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,18 @@
fydglystLaWgoCBNHzUNJYEpSL03/CUNJQFgeak7n1FmZGTIbdfPz0/TbjiJx8dHwsASHR0tBFHT1dVV
rnTLnW5nZ8fxJH5weHgov/e6ujq57+NbAH0AAwye1toMqZdEbm4ujv8eWkmgy9o78jsEyyT++81/gCT4
x44kfQNnfZRX3I/oxwAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripButtonMoveBottom.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAFOSURBVFhH7ZSxyoJQGIYriaBc6hpcWoTWoFlob2i3oc2l
pRtw8AYa2h2CxsBZ8AK6AcdwEQcNKu39+wL/5ZzI6GQQPvDgy0G/90PEWlH6/T5ul0L2ej26iqVaoFqg
WqBaoFrg9xe4XC4wDAPj8ZirLMtM0SObzSZ3BjmbzZAkCd3HEgQBBoMBM1CUiqLA933Kj4miCKPRiHn4
XVVVxeFwoPyc4/F4f123KMThcIgwDCkX53w+YzqdMsNeVdM0xHFM+XWyLMN8PmeGFnUymeB0OlF+j+Vy
yQx/pq7rSNOUshgsy0K9XmeKeC4WC1yvV8piWa/XkCSJKcylBU3TpPw5NpsNWq0WU95oNLBarT5bnuM4
Djqdzn85/fls2y6nPMfzPHS7XbTbbex2u3LLc/b7PVzX/U65MLbbLb4p7XD/kL4o97BMuYdlyj0syRr+
AO3hoBnT5oXcAAAAAElFTkSuQmCC
</value>
</data>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
Expand Down
Loading

0 comments on commit e8ea873

Please sign in to comment.