From e4a83332177c850cdbc614e31e3416091a130bac Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 14 Apr 2002 00:29:39 +0000 Subject: Implemented endAtLastLine attribute which allows option of scrolling one page below last document line. --- include/Scintilla.h | 2 ++ include/Scintilla.iface | 9 +++++++++ 2 files changed, 11 insertions(+) (limited to 'include') diff --git a/include/Scintilla.h b/include/Scintilla.h index e5ccd6f11..b4fa06359 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -362,6 +362,8 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_SETSCROLLWIDTH 2274 #define SCI_GETSCROLLWIDTH 2275 #define SCI_TEXTWIDTH 2276 +#define SCI_SETENDATLASTLINE 2277 +#define SCI_GETENDATLASTLINE 2278 #define SCI_LINEDOWN 2300 #define SCI_LINEDOWNEXTEND 2301 #define SCI_LINEUP 2302 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 99afef5c0..8a4849025 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -943,6 +943,15 @@ get int GetScrollWidth=2275(,) # Does not handle tab or control characters. fun int TextWidth=2276(int style, string text) +# Sets the scroll range so that maximum scroll position has +# the last line at the bottom of the view (default). +# Setting this to false allows scrolling one page below the last line. +set void SetEndAtLastLine=2277(bool endAtLastLine,) + +# Retrieve whether the maximum scroll position has the last +# line at the bottom of the view. +get int GetEndAtLastLine=2278(,) + ## Start of key messages # Move caret down one line. fun void LineDown=2300(,) -- cgit v1.2.3