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/Editor.cxx | |
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/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 11 |
1 files changed, 11 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); |