From 0850525585a84cd22010b7dcf5579e37e940a9aa Mon Sep 17 00:00:00 2001
From: nyamatongwe
On X, the clipboard is asynchronous and may require several messages between - the destination and source applications. Data from SCI_PASTE will not arrive in the + the destination and source applications. Data from SCI_PASTE will not arrive in the document immediately.
SCI_COPYRANGE(int start, int end)SCI_SETSELFORE(bool useSelectionForeColour, int SCI_GETCONTROLCHARSYMBOL message. The default symbol value is 0.
+SCI_SETCARETSTICKY(bool useCaretStickyBehaviour)
+ SCI_GETCARETSTICKY
+ SCI_TOGGLECARETSTICKY
+ These messages set, get or toggle the caretSticky flag which controls when the last position
+ of the caret on the line is saved. When set to true, the position is not saved when you type
+ a character, a tab, paste the clipboard content or press backspace.
There may be up to three margins to the left of the text display, plus a gap either side of @@ -2323,8 +2333,8 @@ struct TextToFind { horizontal space, such as Thai, will mostly work but there are some issues where the characters are drawn separately leading to visual glitches. Bi-directional text is not supported.
-On Windows, code page can be set to 932 (Japanese Shift-JIS), 936 (Simplified Chinese GBK), - 949 (Korean), and 950 (Traditional Chinese Big5) although these may require installation of language +
On Windows, code page can be set to 932 (Japanese Shift-JIS), 936 (Simplified Chinese GBK), + 949 (Korean), and 950 (Traditional Chinese Big5) although these may require installation of language specific support.
On GTK+, code page SC_CP_DBCS (1) sets Scintilla into
@@ -2888,10 +2898,10 @@ struct TextToFind {
When the user makes a selection from the list the container is sent a notification message. On return from the notification Scintilla will insert
+ href="#Notifications">notification message. On return from the notification Scintilla will insert
the selected text unless the autocompletion list has been cancelled, for example by the container sending
.
To make use of autocompletion you must monitor each character added to the document. See
SciTEBase::CharAdded() in SciTEBase.cxx for an example of autocompletion.
SCI_AUTOCSHOW(int lenEntered, const char
@@ -3054,7 +3064,7 @@ struct TextToFind {
SCI_AUTOCGETMAX
Get or set the maximum width of an autocompletion list expressed as the number of characters in the longest item that will be totally visible.
- If zero (the default) then the list's width is calculated to fit the item with the most characters. Any items that cannot be fully displayed within
+ If zero (the default) then the list's width is calculated to fit the item with the most characters. Any items that cannot be fully displayed within
the available width are indicated by the presence of ellipsis.
@@ -3620,10 +3630,10 @@ struct RangeToFormat {
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.
- SC_WRAP_WORD tries to wrap only between words as indicated by
- white space or style changes although if a word is longer than a line, it will be wrapped before
- the line end. SC_WRAP_CHAR is preferred to
- SC_WRAP_WORD for Asian languages where there is no white space
+ SC_WRAP_WORD tries to wrap only between words as indicated by
+ white space or style changes although if a word is longer than a line, it will be wrapped before
+ the line end. SC_WRAP_CHAR is preferred to
+ SC_WRAP_WORD for Asian languages where there is no white space
between words.
Direct access
@@ -3751,7 +3761,7 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){
The best way to see how this is done is to search the SciTE source code for the messages used
in this section of the documentation and see how they are used. You will also need to use
markers and a folding margin to complete your folding implementation.
- The "fold" property should be set to "1" with
+ The "fold" property should be set to "1" with
SCI_SETPROPERTY("fold", "1") to enable folding.
SCI_VISIBLEFROMDOCLINE(int
docLine)
@@ -3966,13 +3976,13 @@ 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 wrapping
- on word boundaries, SC_WRAP_CHAR (2) to enable wrapping
- between any characters, and to SC_WRAP_NONE (0) to disable line
- wrapping. SC_WRAP_CHAR is preferred to
- SC_WRAP_WORD for Asian languages where there is no white space
+ Set wrapMode to SC_WRAP_WORD (1) to enable wrapping
+ on word boundaries, SC_WRAP_CHAR (2) to enable wrapping
+ between any characters, and to SC_WRAP_NONE (0) to disable line
+ wrapping. SC_WRAP_CHAR is preferred to
+ SC_WRAP_WORD for Asian languages where there is no white space
between words.
-
+
SCI_SETWRAPVISUALFLAGS(int wrapVisualFlags)
SCI_GETWRAPVISUALFLAGS
@@ -4442,7 +4452,7 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE
(lineNumber);
href="#SCI_SETREADONLY">SCI_SETREADONLY.
SCN_KEY
- Reports all keys pressed but not consumed by Scintilla. Used on GTK+ because of
+ Reports all keys pressed but not consumed by Scintilla. Used on GTK+ because of
some problems with keyboard focus and is not sent by the Windows version. SCNotification.ch holds the key code and
SCNotification.modifiers holds the modifiers. This notification is sent if the
modifiers include SCMOD_ALT or SCMOD_CTRL and the key code is less
@@ -4511,7 +4521,7 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber);
SCN_AUTOCSELECTION
The user has selected an item in an autocompletion list. The
- notification is sent before the selection is inserted. Automatic insertion can be cancelled by sending a
+ notification is sent before the selection is inserted. Automatic insertion can be cancelled by sending a
message
before returning from the notification. The SCNotification fields used are: