From 21d50ea1a6c9ef18d5b49c7afddd9d821926088a Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 30 Jul 2004 22:42:59 +0000 Subject: Patch from Ben Key to use an invisible system caret to enable screen magnifiers to discover where the user is editing. --- src/Editor.cxx | 5 +++++ src/Editor.h | 1 + 2 files changed, 6 insertions(+) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index eff38e63a..0ef69d1bf 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1394,6 +1394,7 @@ void Editor::EnsureCaretVisible(bool useMargin, bool vert, bool horiz) { Redraw(); } } + UpdateSystemCaret(); } void Editor::ShowCaretAtCurrentPosition() { @@ -1418,6 +1419,10 @@ void Editor::InvalidateCaret() { InvalidateRange(posDrag, posDrag + 1); else InvalidateRange(currentPos, currentPos + 1); + UpdateSystemCaret(); +} + +void Editor::UpdateSystemCaret() { } void Editor::NeedWrapping(int docLineStartWrapping, int docLineEndWrapping) { diff --git a/src/Editor.h b/src/Editor.h index d5116f0de..181e1ffd4 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -369,6 +369,7 @@ protected: // ScintillaBase subclass needs access to much of Editor void ShowCaretAtCurrentPosition(); void DropCaret(); void InvalidateCaret(); + virtual void UpdateSystemCaret(); void NeedWrapping(int docLineStartWrapping = 0, int docLineEndWrapping = 0x7ffffff); bool WrapLines(bool fullWrap, int priorityWrapLineStart); -- cgit v1.2.3