From 6eee037fe180acd217d783aebb1e0aafda3b64b2 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 10 Feb 2005 12:46:17 +0000 Subject: Patch from Suzumizaki-Kimitaka to add character wrap mode. --- doc/ScintillaDoc.html | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 51c40b36a..495d93dff 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -3582,11 +3582,15 @@ struct RangeToFormat {

SCI_SETPRINTWRAPMODE(int wrapMode)
SCI_GETPRINTWRAPMODE
These two functions get and set the printer wrap mode. wrapMode can be - set to SC_WRAP_NONE (0) or SC_WRAP_WORD (1). The default is + set to SC_WRAP_NONE (0), SC_WRAP_WORD (1) or + SC_WRAP_CHAR (2). The default is SC_WRAP_WORD, which wraps printed output so that all characters fit into the print rectangle. If you set SC_WRAP_NONE, each line of text generates one line of output and the line is truncated if it is too long to fit - into the print area.

+ into the print area.
It is important that SC_WRAP_WORD is + not only for low spec computers but for some languages/situations. This makes + wrapping after any characters but it is OK. Some language don't have whitespaces + between words.

Direct access

SCI_GETDIRECTFUNCTION
@@ -3928,7 +3932,10 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){

SCI_SETWRAPMODE(int wrapMode)
SCI_GETWRAPMODE
Set wrapMode to SC_WRAP_WORD (1) to enable line wrapping and to - SC_WRAP_NONE (0) to disable line wrapping.

+ SC_WRAP_NONE (0) to disable line wrapping. And to + SC_WRAP_CHAR (2), it is highly recommended to implement for i18n + product, enables character wrapping mode.

+

SCI_SETWRAPVISUALFLAGS(int wrapVisualFlags)
SCI_GETWRAPVISUALFLAGS
-- cgit v1.2.3