diff options
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;  | 
