From f0e8c7c4c3a5390d0b8150c700cec5c1ad3b226d Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 30 Nov 2000 06:16:57 +0000 Subject: Patches from Stephan to slow down autoscrolling, exposed MoveCaretInsideView as part of the API and did some other work on macros. --- src/Editor.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Editor.h') diff --git a/src/Editor.h b/src/Editor.h index 3733aedc1..1bcac1665 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -90,6 +90,8 @@ protected: // ScintillaBase subclass needs access to much of Editor Caret caret; Timer timer; + Timer autoScrollTimer; + enum { autoScrollDelay = 200 }; Point lastClick; unsigned int lastClickTime; @@ -191,7 +193,7 @@ protected: // ScintillaBase subclass needs access to much of Editor virtual void ScrollText(int linesToMove); void HorizontalScrollTo(int xPos); void MoveCaretInsideView(); - void EnsureCaretVisible(bool useMargin=true); + void EnsureCaretVisible(bool useMargin=true, bool vert=true, bool horiz=true); void ShowCaretAtCurrentPosition(); void DropCaret(); void InvalidateCaret(); -- cgit v1.2.3