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 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/Editor.cxx') 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); -- cgit v1.2.3