diff options
| author | nyamatongwe <devnull@localhost> | 2000-07-01 09:58:35 +0000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2000-07-01 09:58:35 +0000 |
| commit | 31030423de80f394ff49f8550b5e806900bfcd78 (patch) | |
| tree | 3833e2aba6e3d088343cc0379bd22161850b297d /win32/ScintillaWin.cxx | |
| parent | 5f05e5f116b8f9952c779f751309437082bbb067 (diff) | |
| download | scintilla-mirror-31030423de80f394ff49f8550b5e806900bfcd78.tar.gz | |
Horizontal page scroll by 2/3 of page width rather than fixed 200 pixels.
Add opt:nowin98 flag to link to reduce executable size.
Diffstat (limited to 'win32/ScintillaWin.cxx')
| -rw-r--r-- | win32/ScintillaWin.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index b823ebd05..9a964161e 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -1167,6 +1167,8 @@ void ScintillaWin::ScrollMessage(WPARAM wParam) { void ScintillaWin::HorizontalScrollMessage(WPARAM wParam) { int xPos = xOffset; + PRectangle rcText = GetTextRectangle(); + int pageWidth = rcText.Width() * 2 / 3; switch (LoWord(wParam)) { case SB_LINEUP: xPos -= 20; @@ -1175,10 +1177,10 @@ void ScintillaWin::HorizontalScrollMessage(WPARAM wParam) { xPos += 20; break; case SB_PAGEUP: - xPos -= 200; + xPos -= pageWidth; break; case SB_PAGEDOWN: - xPos += 200; + xPos += pageWidth; break; case SB_TOP: xPos = 0; |
