diff options
| author | nyamatongwe <unknown> | 2002-10-08 00:42:36 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2002-10-08 00:42:36 +0000 | 
| commit | ea3685f0c103ad8469959088a75ece739c75806a (patch) | |
| tree | 7d3e6c21264e1f220ef48916100582c699ecdaf0 | |
| parent | 25171eb9355a88a107de3e251bb7f19790bdf971 (diff) | |
| download | scintilla-mirror-ea3685f0c103ad8469959088a75ece739c75806a.tar.gz | |
Added AppendText method.
Credit to Sergey.
| -rw-r--r-- | doc/ScintillaHistory.html | 1 | ||||
| -rw-r--r-- | include/Scintilla.h | 1 | ||||
| -rw-r--r-- | include/Scintilla.iface | 5 | ||||
| -rw-r--r-- | src/Editor.cxx | 4 | 
4 files changed, 11 insertions, 0 deletions
| diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 7582bdabf..8a3d8f481 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -107,6 +107,7 @@  	<li>Olivier Dagenais</li>  	<li>Josh Wingstrom</li>  	<li>Bruce Dodson</li> +	<li>Sergey Koshcheyev</li>      </ul>      <p>         Images used in GTK+ version diff --git a/include/Scintilla.h b/include/Scintilla.h index a3de07809..1b481fca2 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -381,6 +381,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,  #define SCI_TEXTHEIGHT 2279  #define SCI_SETVSCROLLBAR 2280  #define SCI_GETVSCROLLBAR 2281 +#define SCI_APPENDTEXT 2282  #define SCI_LINEDOWN 2300  #define SCI_LINEDOWNEXTEND 2301  #define SCI_LINEUP 2302 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index c9a0921f5..31344aa6f 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -998,6 +998,11 @@ set void SetVScrollBar=2280(bool show,)  # Is the vertical scroll bar visible?  get bool GetVScrollBar=2281(,) +# Append a string to the end of the document without changing the selection. +fun void AppendText=2282(int length, string text) + +## New messages go here +  ## Start of key messages  # Move caret down one line.  fun void LineDown=2300(,) diff --git a/src/Editor.cxx b/src/Editor.cxx index 790840f51..02687ae04 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4768,6 +4768,10 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {  			return 0;  		} +	case SCI_APPENDTEXT: +		pdoc->InsertString(pdoc->Length(), CharPtrFromSPtr(lParam), wParam); +		return 0; +  	case SCI_CLEARALL:  		ClearAll();  		return 0; | 
