diff options
author | nyamatongwe <unknown> | 2003-01-16 11:01:43 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-01-16 11:01:43 +0000 |
commit | 12da249749425bad9256b771ba2116d92db9dd8c (patch) | |
tree | cdf0ce65f879ad4dbc932134b016c00f018d2b7e | |
parent | b03e2f1de361900901d0473a87a27c233a2d629e (diff) | |
download | scintilla-mirror-12da249749425bad9256b771ba2116d92db9dd8c.tar.gz |
Explained about delaying scrolling until an SCN_PAINTED.
-rw-r--r-- | doc/ScintillaDoc.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 967110da4..3ec3517db 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -3578,6 +3578,16 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){ this requires 7 times the memory required by the document contents plus around 80 bytes per line.</p> + <p>Wrapping is not performed immediately there is a change but is delayed until the display + is redrawn. This delay improves peformance by allowing a set of changes to be performed + and then wrapped and displayed once. Because of this, some operations may not occur as + expected. If a file is read and the scroll position moved to a particular line in the text, + such as occurs when a container tries to restore a previous editing session, then + the scroll position will have been determined before wrapping so an unexpected range + of text will be displayed. To scroll to the position correctly, delay the scroll until the + wrapping has been performed by waiting for an initial + <a class="message" href="#SCN_PAINTED">SCN_PAINTED</a> notification.</p> + <p><b id="SCI_SETWRAPMODE">SCI_SETWRAPMODE(int wrapMode)</b><br /> <b id="SCI_GETWRAPMODE">SCI_GETWRAPMODE</b><br /> Set wrapMode to <code>SC_WRAP_WORD</code> (1) to enable line wrapping and to |