diff options
| author | nyamatongwe <unknown> | 2000-07-01 09:58:35 +0000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2000-07-01 09:58:35 +0000 |
| commit | 1051d4be18e683d665024efa31e4d230a94a48dc (patch) | |
| tree | 3833e2aba6e3d088343cc0379bd22161850b297d /win32/ScintillaWin.cxx | |
| parent | 0af33fc2c57022dba94a64c8fc76d7c0bcb20ca8 (diff) | |
| download | scintilla-mirror-1051d4be18e683d665024efa31e4d230a94a48dc.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; |
