diff options
| -rw-r--r-- | include/Scintilla.h | 2 | ||||
| -rw-r--r-- | include/Scintilla.iface | 5 | ||||
| -rw-r--r-- | src/Editor.cxx | 8 | ||||
| -rw-r--r-- | src/Editor.h | 1 | 
4 files changed, 16 insertions, 0 deletions
| diff --git a/include/Scintilla.h b/include/Scintilla.h index f707ed399..42fc2c8d0 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -368,6 +368,8 @@ typedef long (*SciFnDirect)(long ptr, unsigned int iMessage, unsigned long wPara  #define SCI_GETMODEVENTMASK 2378  #define SCI_SETFOCUS 2380  #define SCI_GETFOCUS 2381 +#define SCI_SETSTATUS 2382 +#define SCI_GETSTATUS 2383  #define SCI_GRABFOCUS 2400  #define SCI_STARTRECORD 3001  #define SCI_STOPRECORD 3002 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 50cfa83c5..8b9073585 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -998,6 +998,11 @@ set void SetFocus=2380(bool focus,)  # Get internal focus flag  get bool GetFocus=2381(,) +# Change error status - 0 = OK +set void SetStatus=2382(int statusCode,) +# Get error status +get int GetStatus=2383(,) +  # Set the focus to this Scintilla widget.  # GTK+ Specific  fun void GrabFocus=2400(,) diff --git a/src/Editor.cxx b/src/Editor.cxx index 5bfe8fb25..360e991e9 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -44,6 +44,7 @@ Editor::Editor() {  	hasFocus = false;  	hideSelection = false;  	inOverstrike = false; +	errorStatus = 0;  	bufferedDraw = true; @@ -4284,6 +4285,13 @@ long Editor::WndProc(unsigned int iMessage, unsigned long wParam, long lParam) {  	case SCI_GETFOCUS:  		return hasFocus; +	case SCI_SETSTATUS: +		errorStatus = wParam; +		break; +	 +	case SCI_GETSTATUS: +		return errorStatus; +	  #ifdef MACRO_SUPPORT  	case SCI_STARTRECORD:  		recordingMacro = 1; diff --git a/src/Editor.h b/src/Editor.h index 38d7ad913..3d1c48f4d 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -65,6 +65,7 @@ protected:	// ScintillaBase subclass needs access to much of Editor  	bool hasFocus;  	bool hideSelection;  	bool inOverstrike; +	int errorStatus;  	// In bufferedDraw mode, graphics operations are drawn to a pixmap and then copied to   	// the screen. This avoids flashing but is about 30% slower. | 
