diff options
| author | nyamatongwe <unknown> | 2002-09-19 01:59:37 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2002-09-19 01:59:37 +0000 | 
| commit | 6d3e227726ab559686fdf97d8eee798fa25125b0 (patch) | |
| tree | caa852ee0c958f923a7f8057bbfc339ac1eac563 /src | |
| parent | 792c0835740b1962235085176624512cdac0e566 (diff) | |
| download | scintilla-mirror-6d3e227726ab559686fdf97d8eee798fa25125b0.tar.gz | |
Added mthod to turn off vertical scroll bar.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 12 | ||||
| -rw-r--r-- | src/Editor.h | 1 | 
2 files changed, 13 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index ac7e7bb76..62a035613 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -327,6 +327,7 @@ Editor::Editor() {  	xCaretMargin = 50;  	horizontalScrollBarVisible = true;  	scrollWidth = 2000; +	verticalScrollBarVisible = true;  	endAtLastLine = true;  	pixmapLine = Surface::Allocate(); @@ -5089,6 +5090,17 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {  	case SCI_GETHSCROLLBAR:  		return horizontalScrollBarVisible; +	case SCI_SETVSCROLLBAR: +		if (verticalScrollBarVisible != (wParam != 0)) { +			verticalScrollBarVisible = wParam != 0; +			SetScrollBars(); +			ReconfigureScrollBars(); +		} +		break; + +	case SCI_GETVSCROLLBAR: +		return verticalScrollBarVisible; +  	case SCI_SETINDENTATIONGUIDES:  		vs.viewIndentationGuides = wParam != 0;  		Redraw(); diff --git a/src/Editor.h b/src/Editor.h index 800630bbb..3d99676ae 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -201,6 +201,7 @@ protected:	// ScintillaBase subclass needs access to much of Editor  	int xCaretMargin;	///< Ensure this many pixels visible on both sides of caret  	bool horizontalScrollBarVisible;  	int scrollWidth; +	bool verticalScrollBarVisible;  	bool endAtLastLine;  	Surface *pixmapLine;  | 
