From 1ae22525d048995815c69fc63b8ef8ed8374252f Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 18 Mar 2000 04:01:39 +0000 Subject: Can turn off context (wrong mouse button) menu with SCI_USEPOPUP. Most signals return FALSE on GTK+. --- src/Editor.cxx | 6 ++++++ src/Editor.h | 2 ++ 2 files changed, 8 insertions(+) (limited to 'src') 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 -- cgit v1.2.3