From 35a97d476996ebdd263b4d9a97ed1bb405182e57 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 16 Jan 2003 11:01:43 +0000 Subject: Explained about delaying scrolling until an SCN_PAINTED. --- doc/ScintillaDoc.html | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc') 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.

+

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 + SCN_PAINTED notification.

+

SCI_SETWRAPMODE(int wrapMode)
SCI_GETWRAPMODE
Set wrapMode to SC_WRAP_WORD (1) to enable line wrapping and to -- cgit v1.2.3