From 1ac62f75e51df6fd1521c0bb7633ff20a128e169 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 29 May 2007 12:39:35 +0000 Subject: Block caret feature added by Todd Whiteman. --- doc/ScintillaDoc.html | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 6ded35d2c..053a49fe9 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -2158,6 +2158,8 @@ struct TextToFind { SCI_GETCARETLINEBACKALPHA
SCI_SETCARETPERIOD(int milliseconds)
SCI_GETCARETPERIOD
+ SCI_SETCARETSTYLE(int style)
+ SCI_GETCARETSTYLE
SCI_SETCARETWIDTH(int pixels)
SCI_GETCARETWIDTH
SCI_SETHOTSPOTACTIVEFORE(bool useSetting, @@ -2228,12 +2230,26 @@ struct TextToFind { state. Setting the period to 0 stops the caret blinking. The default value is 500 milliseconds. SCI_GETCARETPERIOD returns the current setting.

+

SCI_SETCARETSTYLE(int style)
+ SCI_GETCARETSTYLE
+ The style of the caret can be set with SCI_SETCARETSTYLE to be a line caret + (CARETSTYLE_LINE=1), a block caret (CARETSTYLE_BLOCK=2) or to not draw at all + (CARETSTYLE_INVISIBLE=0). The default value is the line caret (CARETSTYLE_LINE=1). + You can determine the current caret style setting using SCI_GETCARETSTYLE.

+ +

The block character draws most combining and multibyte character sequences successfully, + though some fonts like Thai Fonts (and possibly others) can sometimes appear strange when + the cursor is positioned at these characters, which may result in only drawing a part of the + cursor character sequence. This is most notable on Windows platforms.

+

SCI_SETCARETWIDTH(int pixels)
SCI_GETCARETWIDTH
- The width of the caret can be set with SCI_SETCARETWIDTH to a value of 0, 1, 2 or - 3 pixels. The default width is 1 pixel. You can read back the current width with + The width of the line caret can be set with SCI_SETCARETWIDTH to a value of + 0, 1, 2 or 3 pixels. The default width is 1 pixel. You can read back the current width with SCI_GETCARETWIDTH. A width of 0 makes the caret invisible (added at version - 1.50).

+ 1.50), similar to setting the caret style to CARETSTYLE_INVISIBLE (though not interchangable). + This setting only affects the width of the cursor when the cursor style is set to line caret + mode, it does not affect the width for a block caret.

SCI_SETHOTSPOTACTIVEFORE(bool useHotSpotForeColour, int colour)
-- cgit v1.2.3