From a2c624d721b8ee85dc2a2a2276a14b87b7c623a0 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 7 Apr 2002 02:48:01 +0000 Subject: Added SCN_ZOOM and SCI_TEXTWIDTH. --- doc/ScintillaDoc.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 8d03977d0..2905e5e22 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -243,6 +243,7 @@ SCI_SELECTIONISRECTANGLE SCI_MOVECARETINSIDEVIEW SCI_WORDENDPOSITION(int position, bool onlyWordCharacters) SCI_WORDSTARTPOSITION(int position, bool onlyWordCharacters) +SCI_TEXTWIDTH(int stylenumber, char *text)

Scintilla maintains a selection which stretches between two points, the anchor and the @@ -261,6 +262,13 @@ SCI_WORDSTARTPOSITION(int position, bool onlyWordCharacters) SCI_POSITIONFROMPOINTCLOSE is similar but returns -1 if the point is outside the window or not close to any characters.

+

+ SCI_POINTXFROMPOSITION and SCI_POINTYFROMPOSITION + can be used to find the pixel location of text on the display. + SCI_TEXTWIDTH can be used to find the pixel width of a string which + can be used, for example, to decide how wide to make the line number + margin in order to display a given number of numerals. +

SCI_WORDENDPOSITION and SCI_WORDSTARTPOSITION can be used to find the start and end of words using the same definition of words as used internally @@ -1601,6 +1609,16 @@ SC_TIME_FOREVER If set to SC_TIME_FOREVER, the default, no dwell events will be generated.

+
+SCN_ZOOM
+
+

+ SCN_ZOOM is generated when the user zooms the display + using the keyboard or the SCI_SETZOOM method is called. + This notification can be used to recalculate positions, such as the + width of the line number margin to maintain sizes in terms of characters + rather than pixels. +

Edit messages currently supported by Scintilla which will be removed in the future. -- cgit v1.2.3