From d123f6bfc56638d3da96d429d80e289adc477178 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 20 Mar 2013 20:37:41 +1100 Subject: Add ScrollRange feature. --- include/Scintilla.h | 1 + include/Scintilla.iface | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'include') diff --git a/include/Scintilla.h b/include/Scintilla.h index 15a86682e..48c7ff379 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -382,6 +382,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_POSITIONFROMLINE 2167 #define SCI_LINESCROLL 2168 #define SCI_SCROLLCARET 2169 +#define SCI_SCROLLRANGE 2569 #define SCI_REPLACESEL 2170 #define SCI_SETREADONLY 2171 #define SCI_NULL 2172 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 670d3937f..496f472ae 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -924,6 +924,11 @@ fun void LineScroll=2168(int columns, int lines) # Ensure the caret is visible. fun void ScrollCaret=2169(,) +# Scroll the argument positions and the range between them into view giving +# priority to the primary position then the secondary position. +# This may be used to make a search match visible. +fun void ScrollRange=2569(position secondary, position primary) + # Replace the selected text with the argument text. fun void ReplaceSel=2170(, string text) -- cgit v1.2.3