From 4b38936d74cd174fc7c0895e26cc73729bbcd808 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 3 Oct 2000 13:09:51 +0000 Subject: Mouse down captures now optional. Save and restore of assertion destination in paint. --- src/Editor.cxx | 9 ++++++++- src/Editor.h | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 360e991e9..74c0b06ac 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -45,7 +45,8 @@ Editor::Editor() { hideSelection = false; inOverstrike = false; errorStatus = 0; - + mouseDownCaptures = true; + bufferedDraw = true; lastClickTime = 0; @@ -4292,6 +4293,12 @@ long Editor::WndProc(unsigned int iMessage, unsigned long wParam, long lParam) { case SCI_GETSTATUS: return errorStatus; + case SCI_SETMOUSEDOWNCAPTURES: + mouseDownCaptures = wParam; + + case SCI_GETMOUSEDOWNCAPTURES: + return mouseDownCaptures; + #ifdef MACRO_SUPPORT case SCI_STARTRECORD: recordingMacro = 1; diff --git a/src/Editor.h b/src/Editor.h index 3d1c48f4d..f51c1440b 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -66,7 +66,8 @@ protected: // ScintillaBase subclass needs access to much of Editor bool hideSelection; bool inOverstrike; int errorStatus; - + bool mouseDownCaptures; + // In bufferedDraw mode, graphics operations are drawn to a pixmap and then copied to // the screen. This avoids flashing but is about 30% slower. bool bufferedDraw; -- cgit v1.2.3