From 3b031e3e5ec28064ce2bb4e67e0d9e48a40ee594 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 18 Apr 2003 10:19:52 +0000 Subject: New methods for finding the next or previous position taking multi byte characters into account. --- doc/ScintillaDoc.html | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index a7970d614..66944ec97 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -885,6 +885,8 @@ struct TextToFind { onlyWordCharacters)
SCI_WORDSTARTPOSITION(int position, bool onlyWordCharacters)
+ SCI_POSITIONBEFORE(int position)
+ SCI_POSITIONAFTER(int position)
SCI_TEXTWIDTH(int styleNumber, char *text)
SCI_TEXTHEIGHT(int line)
SCI_CHOOSECARETX
@@ -1149,6 +1151,14 @@ struct TextToFind { +

SCI_POSITIONBEFORE(int position)
+ SCI_POSITIONAFTER(int position)
+ These messages return the position before and after another position + in the document taking into account the current code page. The minimum + position returned is 0 and the maximum is the last position in the document. + If called with a position within a multi byte character will return the position + of the start/end of that character.

+

SCI_TEXTWIDTH(int styleNumber, char *text)
This returns the pixel width of a string drawn in the given styleNumber which can be used, for example, to decide how wide to make the line number margin in order to display a -- cgit v1.2.3