From a3db5648e45b6d130e89cbc978e2d07a3a7dd18d Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Thu, 11 Oct 2018 11:42:59 +0200 Subject: [PATCH] + upd: Current Scintilla development (disable command events for speedup) --- scintilla/doc/ScintillaDoc.html | 14 +++++++++++++- scintilla/doc/ScintillaHistory.html | 4 ++++ scintilla/include/Scintilla.h | 6 ++++-- scintilla/include/Scintilla.iface | 10 ++++++++-- scintilla/src/Editor.cxx | 16 ++++++++++++--- scintilla/src/Editor.h | 1 + scintilla/win32/ScintillaWin.cxx | 8 +++++--- src/Encoding.h | 29 +++++++--------------------- src/Helpers.c | 6 +++--- src/Notepad3.c | 7 +++++-- src/StyleLexers/EditLexer.h | 4 ++-- src/Version.h | Bin 12948 -> 12948 bytes 12 files changed, 65 insertions(+), 40 deletions(-) diff --git a/scintilla/doc/ScintillaDoc.html b/scintilla/doc/ScintillaDoc.html index ee78740e0..709b0e7ad 100644 --- a/scintilla/doc/ScintillaDoc.html +++ b/scintilla/doc/ScintillaDoc.html @@ -7264,6 +7264,8 @@ struct SCNotification {

The following SCI_* messages are associated with these notifications:

SCI_SETMODEVENTMASK(int eventMask)
SCI_GETMODEVENTMASK → int
+ SCI_SETCOMMANDEVENTS(bool commandEvents)
+ SCI_GETCOMMANDEVENTS → bool
SCI_SETMOUSEDWELLTIME(int periodMilliseconds)
SCI_GETMOUSEDWELLTIME → int
SCI_SETIDENTIFIER(int identifier)
@@ -7750,7 +7752,9 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber); EN_CHANGE). No other information is sent. If you need more detailed information use SCN_MODIFIED. You can filter the types of changes you are notified about with SCI_SETMODEVENTMASK.

+ href="#SCI_SETMODEVENTMASK">SCI_SETMODEVENTMASK and + SCI_SETCOMMANDEVENTS.

SCI_SETMODEVENTMASK(int eventMask)
SCI_GETMODEVENTMASK → int
@@ -7770,6 +7774,14 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber); SC_MOD_BEFOREINSERT, SC_MOD_BEFOREDELETE, SC_MULTILINEUNDOREDO, and SC_MODEVENTMASKALL.

+

SCI_SETCOMMANDEVENTS(bool commandEvents)
+ SCI_GETCOMMANDEVENTS → bool
+ These messages set and get whether SCEN_* command events are + sent to the container. For SCEN_CHANGE this acts as an additional filter over + SCI_SETMODEVENTMASK. + Most applications should set this off to avoid overhead and only use + SCN_MODIFIED.

+

SCEN_SETFOCUS
SCEN_KILLFOCUS
SCEN_SETFOCUS (512) is fired when Scintilla receives focus and diff --git a/scintilla/doc/ScintillaHistory.html b/scintilla/doc/ScintillaHistory.html index 4b6b8926d..7e2fc7e2e 100644 --- a/scintilla/doc/ScintillaHistory.html +++ b/scintilla/doc/ScintillaHistory.html @@ -551,6 +551,10 @@ Release 4.1.3