aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2004-07-30 22:42:59 +0000
committernyamatongwe <devnull@localhost>2004-07-30 22:42:59 +0000
commit21d50ea1a6c9ef18d5b49c7afddd9d821926088a (patch)
tree8d071dd237a4e133a444945569c0a44fdd8c3445 /src
parent018bf038202dda06795772eaec178e33089067cd (diff)
downloadscintilla-mirror-21d50ea1a6c9ef18d5b49c7afddd9d821926088a.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.cxx5
-rw-r--r--src/Editor.h1
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);