diff options
| author | nyamatongwe <unknown> | 2000-03-18 04:01:39 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2000-03-18 04:01:39 +0000 | 
| commit | 1ae22525d048995815c69fc63b8ef8ed8374252f (patch) | |
| tree | 2663775598d5af5fb406b45195d99324a4f1db6c /src | |
| parent | 5b1696c853eade22c596eaf0786b218f37e1de04 (diff) | |
| download | scintilla-mirror-1ae22525d048995815c69fc63b8ef8ed8374252f.tar.gz | |
Can turn off context (wrong mouse button) menu with SCI_USEPOPUP.
Most signals return FALSE on GTK+.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 6 | ||||
| -rw-r--r-- | src/Editor.h | 2 | 
2 files changed, 8 insertions, 0 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index bcefa8aec..8550286ac 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -88,6 +88,8 @@ Editor::Editor() {  	modEventMask = SC_MODEVENTMASKALL; +	displayPopupMenu = true; +	  	pdoc = new Document();  	pdoc ->AddRef();  	pdoc->AddWatcher(this, 0); @@ -3523,6 +3525,10 @@ LRESULT Editor::WndProc(UINT iMessage, WPARAM wParam, LPARAM lParam) {  	case SCI_LINESONSCREEN:  		return LinesOnScreen(); +	case SCI_USEPOPUP: +		displayPopupMenu = wParam; +		break; +    #ifdef INCLUDE_DEPRECATED_FEATURES  	case SCI_SETFORE:  		vs.styles[STYLE_DEFAULT].fore.desired = Colour(wParam); diff --git a/src/Editor.h b/src/Editor.h index 46fc52d94..16bcd4b22 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -116,6 +116,8 @@ protected:	// ScintillaBase subclass needs access to much of Editor  	int searchAnchor; +	int displayPopupMenu; +  #ifdef MACRO_SUPPORT  	int recordingMacro;  #endif | 
