From c11b33236bcd09928bce17eaef11951a77a84abe Mon Sep 17 00:00:00 2001
From: nyamatongwe
Date: Sun, 2 Jan 2011 18:02:04 +1100
Subject: Send SCN_UPDATEUI notification when view scrolled. Satisfies feature
request #3125977. Also includes an updated field in notification so that
updates of no interest can be easily ignored.
---
doc/ScintillaDoc.html | 63 +++++++++++++++++++++++++++++++++++++++++++++------
1 file changed, 56 insertions(+), 7 deletions(-)
(limited to 'doc/ScintillaDoc.html')
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html
index f120e29f1..b8c2a38ae 100644
--- a/doc/ScintillaDoc.html
+++ b/doc/ScintillaDoc.html
@@ -5687,6 +5687,9 @@ struct SCNotification {
int listType; // SCN_USERLISTSELECTION, SCN_AUTOCSELECTION
int x; // SCN_DWELLSTART, SCN_DWELLEND
int y; // SCN_DWELLSTART, SCN_DWELLEND
+ int token; // SCN_MODIFIED with SC_MOD_CONTAINER
+ int annotationLinesAdded; // SC_MOD_CHANGEANNOTATION
+ int updated; // SCN_UPDATEUI
};
@@ -5787,13 +5790,59 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber);
double click and the line field is set to the line of the double click.
SCN_UPDATEUI
- Either the text or styling of the document has changed or the selection range has changed. Now
- would be a good time to update any container UI elements that depend on document or view state.
- This was previously called SCN_CHECKBRACE because a common use is to check whether the
- caret is next to a brace and set highlights on this brace and its corresponding matching brace.
- This also replaces SCN_POSCHANGED,
- which is now deprecated.
+ Either the text or styling of the document has changed or the selection range or scroll position has changed.
+ Now would be a good time to update any container UI elements that depend on document or view state.
+ The updated field is set to the bit set of things changed since the previous notiication.
+
+
+
+ | Symbol |
+
+ Value |
+
+ Meaning |
+
+
+
+
+
+
+ SC_UPDATE_CONTENT |
+
+ 0x01 |
+
+ Contents, styling or markers have been changed. |
+
+
+
+
+ SC_UPDATE_SELECTION |
+
+ 0x02 |
+
+ Selection has been changed. |
+
+
+
+
+ SC_UPDATE_V_SCROLL |
+
+ 0x04 |
+
+ Scrolled vertically. |
+
+
+
+
+ SC_UPDATE_H_SCROLL |
+
+ 0x08 |
+
+ Scrolled horizontally. |
+
+
+
+
SCN_MODIFIED
This notification is sent when the text or styling of the document changes or is about to
--
cgit v1.2.3