diff options
author | nyamatongwe <unknown> | 2004-07-30 22:42:59 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2004-07-30 22:42:59 +0000 |
commit | 2ea146908486cce03689b7c2bda7bf71a8eecdc4 (patch) | |
tree | 8d071dd237a4e133a444945569c0a44fdd8c3445 /src | |
parent | 67fbd86325859bc85ad98b773c8a09c8645142e6 (diff) | |
download | scintilla-mirror-2ea146908486cce03689b7c2bda7bf71a8eecdc4.tar.gz |
Patch from Ben Key to use an invisible system caret to enable screen
magnifiers to discover where the user is editing.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 5 | ||||
-rw-r--r-- | src/Editor.h | 1 |
2 files changed, 6 insertions, 0 deletions
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); |