diff options
author | nyamatongwe <unknown> | 2002-04-04 07:45:59 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2002-04-04 07:45:59 +0000 |
commit | 2ffc5af90180e0bbf09359bfde77780e4e26715b (patch) | |
tree | 8692569d58a4b15a7b3f07608a44069663c677f8 /src | |
parent | a3e1c4d6f23dabf63c029a2ea31869e17be215fb (diff) | |
download | scintilla-mirror-2ffc5af90180e0bbf09359bfde77780e4e26715b.tar.gz |
Change to horizontal scrolling to allow the assumed document width to be set.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 11 | ||||
-rw-r--r-- | src/Editor.h | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 57856dc37..4e430b0d7 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -326,6 +326,7 @@ Editor::Editor() { xOffset = 0; xCaretMargin = 50; horizontalScrollBarVisible = true; + scrollWidth = 2000; pixmapLine = Surface::Allocate(); pixmapSelMargin = Surface::Allocate(); @@ -4668,6 +4669,16 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_GETLAYOUTCACHE: return llc.GetLevel(); + case SCI_SETSCROLLWIDTH: + PLATFORM_ASSERT(wParam > 0); + if (wParam > 0) + scrollWidth = wParam; + SetScrollBars(); + break; + + case SCI_GETSCROLLWIDTH: + return scrollWidth; + case SCI_GETCOLUMN: return pdoc->GetColumn(wParam); diff --git a/src/Editor.h b/src/Editor.h index d784f478e..ba35c83c3 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -200,6 +200,7 @@ protected: // ScintillaBase subclass needs access to much of Editor int xOffset; ///< Horizontal scrolled amount in pixels int xCaretMargin; ///< Ensure this many pixels visible on both sides of caret bool horizontalScrollBarVisible; + int scrollWidth; Surface *pixmapLine; Surface *pixmapSelMargin; |