#include <scintillaif.h>
Inheritance diagram for CScintilla:
Public Methods | |
CScintilla () | |
Default constructor. | |
~CScintilla () | |
Destructor. | |
HWND | Create (HWND hParent, HINSTANCE hInst) |
Create a Scintilla window inside parent hParent. | |
bool | OpenFile (LPCTSTR filename) |
Load a file from "filename". | |
bool | SaveFile (LPCTSTR filename) |
Save the contents of the control to "filename". | |
bool | IsScintillaNotify (LPARAM lParam) |
void | HandleNotify (LPARAM lParam) |
bool | GetModified () |
Returns whether the text in the control has been modified since the last save. | |
virtual long | SPerform (long Msg, WPARAM wParam=0, LPARAM lParam=0) |
void | DefineMarker (int marker, int markerType, COLORREF fore, COLORREF back) |
void | SetFoldingMargins (EFoldStyle style) |
Set the Folding Margins. More... | |
void | FoldChanged (int line, int levelNow, int levelPrev) |
Called when Fold Changed. | |
void | Expand (int &line, bool doExpand, bool force=false, int visLevels=0, int level=-1) |
Called to Expand and Collapse folded sections. | |
bool | MarginClick (int position, int modifiers) |
Called when a margin is clicked on. | |
void | FoldAll () |
Call FoldAll() to collapse the entire document. | |
Public Wrapper Functions | |
The functions below are implemented and coded automagically using the Python wrapper generator code contained in SHFace.py and SHFacer.py. | |
void | AddText (int length, const char *text) |
void | AddStyledText (int length, char *c) |
void | InsertText (long pos, const char *text) |
void | ClearAll () |
void | ClearDocumentStyle () |
int | GetLength () |
int | GetCharAt (long pos) |
long | GetCurrentPos () |
long | GetAnchor () |
int | GetStyleAt (long pos) |
void | Redo () |
void | SetUndoCollection (bool collectUndo) |
void | SelectAll () |
void | SetSavePoint () |
int | GetStyledText (TextRange *tr) |
bool | CanRedo () |
int | MarkerLineFromHandle (int handle) |
void | MarkerDeleteHandle (int handle) |
bool | GetUndoCollection () |
int | GetViewWS () |
void | SetViewWS (int viewWS) |
int | PositionFromPoint (int x, int y) |
int | PositionFromPointClose (int x, int y) |
void | GotoLine (int line) |
void | GotoPos (long pos) |
void | SetAnchor (long posAnchor) |
int | GetCurLine (int length, char *text) |
long | GetEndStyled () |
void | ConvertEOLs (int eolMode) |
int | GetEOLMode () |
void | SetEOLMode (int eolMode) |
void | StartStyling (long pos, int mask) |
void | SetStyling (int length, int style) |
bool | GetBufferedDraw () |
void | SetBufferedDraw (bool buffered) |
void | SetTabWidth (int tabWidth) |
int | GetTabWidth () |
void | SetCodePage (int codePage) |
void | SetUsePalette (bool usePalette) |
void | MarkerDefine (int markerNumber, int markerSymbol) |
void | MarkerSetFore (int markerNumber, COLORREF fore) |
void | MarkerSetBack (int markerNumber, COLORREF back) |
void | MarkerAdd (int line, int markerNumber) |
void | MarkerDelete (int line, int markerNumber) |
void | MarkerDeleteAll (int markerNumber) |
int | MarkerGet (int line) |
int | MarkerNext (int lineStart, int markerMask) |
int | MarkerPrevious (int lineStart, int markerMask) |
void | SetMarginTypeN (int margin, int marginType) |
int | GetMarginTypeN (int margin) |
void | SetMarginWidthN (int margin, int pixelWidth) |
int | GetMarginWidthN (int margin) |
void | SetMarginMaskN (int margin, int mask) |
int | GetMarginMaskN (int margin) |
void | SetMarginSensitiveN (int margin, bool sensitive) |
bool | GetMarginSensitiveN (int margin) |
void | StyleClearAll () |
void | StyleSetFore (int style, COLORREF fore) |
void | StyleSetBack (int style, COLORREF back) |
void | StyleSetBold (int style, bool bold) |
void | StyleSetItalic (int style, bool italic) |
void | StyleSetSize (int style, int sizePoints) |
void | StyleSetFont (int style, const char *fontName) |
void | StyleSetEOLFilled (int style, bool filled) |
void | StyleResetDefault () |
void | StyleSetUnderline (int style, bool underline) |
void | StyleSetCase (int style, int caseForce) |
void | StyleSetCharacterSet (int style, int characterSet) |
void | SetSelFore (bool useSetting, COLORREF fore) |
void | SetSelBack (bool useSetting, COLORREF back) |
void | SetCaretFore (COLORREF fore) |
void | AssignCmdKey (DWORD km, int msg) |
void | ClearCmdKey (DWORD km) |
void | ClearAllCmdKeys () |
void | SetStylingEx (int length, const char *styles) |
void | StyleSetVisible (int style, bool visible) |
int | GetCaretPeriod () |
void | SetCaretPeriod (int periodMilliseconds) |
void | SetWordChars (const char *characters) |
void | BeginUndoAction () |
void | EndUndoAction () |
void | IndicSetStyle (int indic, int style) |
int | IndicGetStyle (int indic) |
void | IndicSetFore (int indic, COLORREF fore) |
COLORREF | IndicGetFore (int indic) |
void | SetStyleBits (int bits) |
int | GetStyleBits () |
void | SetLineState (int line, int state) |
int | GetLineState (int line) |
int | GetMaxLineState () |
bool | GetCaretLineVisible () |
void | SetCaretLineVisible (bool show) |
COLORREF | GetCaretLineBack () |
void | SetCaretLineBack (COLORREF back) |
void | AutoCShow (int lenEntered, const char *itemList) |
void | AutoCCancel () |
bool | AutoCActive () |
long | AutoCPosStart () |
void | AutoCComplete () |
void | AutoCStops (const char *characterSet) |
void | AutoCSetSeparator (int separatorCharacter) |
int | AutoCGetSeparator () |
void | AutoCSelect (const char *text) |
void | AutoCSetCancelAtStart (bool cancel) |
bool | AutoCGetCancelAtStart () |
void | AutoCSetFillUps (const char *characterSet) |
void | AutoCSetChooseSingle (bool chooseSingle) |
bool | AutoCGetChooseSingle () |
void | AutoCSetIgnoreCase (bool ignoreCase) |
bool | AutoCGetIgnoreCase () |
void | UserListShow (int listType, const char *itemList) |
void | AutoCSetAutoHide (bool autoHide) |
bool | AutoCGetAutoHide () |
void | SetIndent (int indentSize) |
int | GetIndent () |
void | SetUseTabs (bool useTabs) |
bool | GetUseTabs () |
void | SetLineIndentation (int line, int indentSize) |
int | GetLineIndentation (int line) |
long | GetLineIndentPosition (int line) |
int | GetColumn (long pos) |
void | SetHScrollBar (bool show) |
bool | GetHScrollBar () |
void | SetIndentationGuides (bool show) |
bool | GetIndentationGuides () |
void | SetHighlightGuide (int column) |
int | GetHighlightGuide () |
int | GetLineEndPosition (int line) |
int | GetCodePage () |
COLORREF | GetCaretFore () |
bool | GetUsePalette () |
bool | GetReadOnly () |
void | SetCurrentPos (long pos) |
void | SetSelectionStart (long pos) |
long | GetSelectionStart () |
void | SetSelectionEnd (long pos) |
long | GetSelectionEnd () |
void | SetPrintMagnification (int magnification) |
int | GetPrintMagnification () |
void | SetPrintColourMode (int mode) |
int | GetPrintColourMode () |
long | FindText (int flags, TextToFind *ft) |
void | FormatRange (bool draw, long fr) |
int | GetFirstVisibleLine () |
int | GetLine (int line, char *text) |
int | GetLineCount () |
void | SetMarginLeft (int pixelWidth) |
int | GetMarginLeft () |
void | SetMarginRight (int pixelWidth) |
int | GetMarginRight () |
bool | GetModify () |
void | SetSel (long start, long end) |
int | GetSelText (char *text) |
int | GetTextRange (TextRange *tr) |
void | HideSelection (bool normal) |
int | PointXFromPosition (long pos) |
int | PointYFromPosition (long pos) |
int | LineFromPosition (long pos) |
int | PositionFromLine (int line) |
void | LineScroll (int columns, int lines) |
void | ScrollCaret () |
void | ReplaceSel (const char *text) |
void | SetReadOnly (bool readOnly) |
void | Null () |
bool | CanPaste () |
bool | CanUndo () |
void | EmptyUndoBuffer () |
void | Undo () |
void | Cut () |
void | Copy () |
void | Paste () |
void | Clear () |
void | SetText (const char *text) |
int | GetText (int length, char *text) |
int | GetTextLength () |
int | GetDirectFunction () |
int | GetDirectPointer () |
void | SetOvertype (bool overtype) |
bool | GetOvertype () |
void | SetCaretWidth (int pixelWidth) |
int | GetCaretWidth () |
void | SetTargetStart (long pos) |
long | GetTargetStart () |
void | SetTargetEnd (long pos) |
long | GetTargetEnd () |
int | ReplaceTarget (int length, const char *text) |
int | ReplaceTargetRE (int length, const char *text) |
int | SearchInTarget (int length, const char *text) |
void | SetSearchFlags (int flags) |
int | GetSearchFlags () |
void | CallTipShow (long pos, const char *definition) |
void | CallTipCancel () |
bool | CallTipActive () |
long | CallTipPosStart () |
void | CallTipSetHlt (int start, int end) |
void | CallTipSetBack (COLORREF back) |
int | VisibleFromDocLine (int line) |
int | DocLineFromVisible (int lineDisplay) |
void | SetFoldLevel (int line, int level) |
int | GetFoldLevel (int line) |
int | GetLastChild (int line, int level) |
int | GetFoldParent (int line) |
void | ShowLines (int lineStart, int lineEnd) |
void | HideLines (int lineStart, int lineEnd) |
bool | GetLineVisible (int line) |
void | SetFoldExpanded (int line, bool expanded) |
bool | GetFoldExpanded (int line) |
void | ToggleFold (int line) |
void | EnsureVisible (int line) |
void | SetFoldFlags (int flags) |
void | EnsureVisibleEnforcePolicy (int line) |
void | SetTabIndents (bool tabIndents) |
bool | GetTabIndents () |
void | SetBackSpaceUnIndents (bool bsUnIndents) |
bool | GetBackSpaceUnIndents () |
void | SetMouseDwellTime (int periodMilliseconds) |
int | GetMouseDwellTime () |
void | LineDown () |
void | LineDownExtend () |
void | LineUp () |
void | LineUpExtend () |
void | CharLeft () |
void | CharLeftExtend () |
void | CharRight () |
void | CharRightExtend () |
void | WordLeft () |
void | WordLeftExtend () |
void | WordRight () |
void | WordRightExtend () |
void | Home () |
void | HomeExtend () |
void | LineEnd () |
void | LineEndExtend () |
void | DocumentStart () |
void | DocumentStartExtend () |
void | DocumentEnd () |
void | DocumentEndExtend () |
void | PageUp () |
void | PageUpExtend () |
void | PageDown () |
void | PageDownExtend () |
void | EditToggleOvertype () |
void | Cancel () |
void | DeleteBack () |
void | Tab () |
void | BackTab () |
void | NewLine () |
void | FormFeed () |
void | VCHome () |
void | VCHomeExtend () |
void | ZoomIn () |
void | ZoomOut () |
void | DelWordLeft () |
void | DelWordRight () |
void | LineCut () |
void | LineDelete () |
void | LineTranspose () |
void | LowerCase () |
void | UpperCase () |
void | LineScrollDown () |
void | LineScrollUp () |
void | MoveCaretInsideView () |
int | LineLength (int line) |
void | BraceHighlight (long pos1, long pos2) |
void | BraceBadLight (long pos) |
long | BraceMatch (long pos) |
bool | GetViewEOL () |
void | SetViewEOL (bool visible) |
int | GetDocPointer () |
void | SetDocPointer (int pointer) |
void | SetModEventMask (int mask) |
int | GetEdgeColumn () |
void | SetEdgeColumn (int column) |
int | GetEdgeMode () |
void | SetEdgeMode (int mode) |
COLORREF | GetEdgeColour () |
void | SetEdgeColour (COLORREF edgeColour) |
void | SearchAnchor () |
int | SearchNext (int flags, const char *text) |
int | SearchPrev (int flags, const char *text) |
void | SetCaretPolicy (int caretPolicy, int caretSlop) |
int | LinesOnScreen () |
void | UsePopUp (bool allowPopUp) |
bool | SelectionIsRectangle () |
void | SetZoom (int zoom) |
int | GetZoom () |
int | CreateDocument () |
void | AddRefDocument (int doc) |
void | ReleaseDocument (int doc) |
int | GetModEventMask () |
void | SetFocus (bool focus) |
bool | GetFocus () |
void | SetStatus (int statusCode) |
int | GetStatus () |
void | SetMouseDownCaptures (bool captures) |
bool | GetMouseDownCaptures () |
void | SetCursor (int cursorType) |
int | GetCursor () |
void | WordPartLeft () |
void | WordPartLeftExtend () |
void | WordPartRight () |
void | WordPartRightExtend () |
void | SetVisiblePolicy (int visiblePolicy, int visibleSlop) |
void | DelLineLeft () |
void | DelLineRight () |
void | GrabFocus () |
void | StartRecord () |
void | StopRecord () |
void | SetLexer (int lexer) |
int | GetLexer () |
void | Colourise (long start, long end) |
void | SetProperty (const char *key, const char *value) |
void | SetKeyWords (int keywordSet, const char *keyWords) |
void | SetLexerLanguage (const char *language) |
Protected Methods | |
void | GetRange (int start, int end, char *text) |
Locally used method to get a range of text. | |
Protected Attributes | |
HWND | hWnd |
Handle of the relevant scintilla window. | |
void * | m_Pointer |
Used for Scintilla's GetDirectPointer. | |
scmsgfn | Perform |
Function pointer to Scintilla window message pump. | |
bool | m_Modified |
Is text modified? | |
Static Protected Attributes | |
HMODULE | scidll = NULL |
Handle of the loaded scilexer.dll. | |
int | refs = 0 |
Reference counter. |
|
Extend life of document. |
|
Add array of cells to document |
|
Add text to the document |
|
When key+modifier combination km is pressed perform msg. |
|
Is there an auto-completion list visible? |
|
Remove the auto-completion list from the screen. |
|
User has selected an item so remove the list and insert the selection. |
|
Retrieve whether or not autocompletion is hidden automatically when nothing matches |
|
Retrieve whether auto-completion cancelled by backspacing before start. |
|
Retrieve whether a single item auto-completion list automatically choose the item. |
|
Retrieve state of ignore case flag. |
|
Retrieve the auto-completion list separator character. |
|
Retrieve the position of the caret when the auto-completion list was displayed. |
|
Select the item in the auto-completion list that starts with a string. |
|
Set whether or not autocompletion is hidden automatically when nothing matches |
|
Should the auto-completion list be cancelled if the user backspaces to a position before where the box was created. |
|
Should a single item auto-completion list automatically choose the item. |
|
Define a set of character that when typed fills up the selected word. |
|
Set whether case is significant when performing auto-completion searches. |
|
Change the separator character in the string setting up an auto-completion list. Default is space but can be changed if items contain space. |
|
Display a auto-completion list. The lenEntered parameter indicates how many characters before the caret should be used to provide context. |
|
Define a set of character that when typed cancel the auto-completion list. |
|
Dedent the selected lines. |
|
Start a sequence of actions that is undone and redone as a unit. May be nested. |
|
Highlight the character at a position indicating there is no matching brace. |
|
Highlight the characters at two positions. |
|
Find the position of a matching brace or INVALID_POSITION if no match. |
|
Is there an active call tip? |
|
Remove the call tip from the screen. |
|
Retrieve the position where the caret was before displaying the call tip. |
|
Set the background colour for the call tip. |
|
Highlight a segment of the definition. |
|
Show a call tip containing a definition near position pos. |
|
Will a paste succeed? |
|
Are there any redoable actions in the undo history. |
|
Are there any undoable actions in the undo history. |
|
Cancel any modes such as call tip or auto-completion list display. |
|
Move caret left one character. |
|
Move caret left one character extending selection to new caret position. |
|
Move caret right one character. |
|
Move caret right one character extending selection to new caret position. |
|
Clear the selection. |
|
Delete all text in the document |
|
Drop all key mappings. |
|
When key+modifier combination km do nothing. |
|
Set all style bytes to 0, remove all folding information |
|
Colourise a segment of the document using the current lexing language. |
|
Convert all line endings in the document to one mode. |
|
Copy the selection to the clipboard. |
|
Create a new document object. Starts with reference count of 1 and not selected into editor. |
|
Cut the selection to the clipboard. |
|
Function taken from Scite to combine three marker define operations |
|
Delete back from the current position to the start of the line |
|
Delete forwards from the current position to the end of the line |
|
Delete the word to the left of the caret. |
|
Delete the word to the right of the caret. |
|
Delete the selection or if no selection, the character before the caret. |
|
Find the document line of a display line taking hidden lines into account. |
|
Move caret to last position in document. |
|
Move caret to last position in document extending selection to new caret position. |
|
Move caret to first position in document. |
|
Move caret to first position in document extending selection to new caret position. |
|
Switch from insert to overtype mode or the reverse. |
|
Delete the undo history. |
|
End a sequence of actions that is undone and redone as a unit. |
|
Ensure a particular line is visible by expanding any header line hiding it. |
|
Ensure a particular line is visible by expanding any header line hiding it. Use the currently set visibility policy to determine which range to display. |
|
Find some text in the document. |
|
Insert a Form Feed character. |
|
On Windows will draw the document into a display context such as a printer. |
|
Returns the position of the opposite end of the selection to the caret |
|
Does a backspace pressed when caret is within indentation unindent? |
|
Is drawing done first into a buffer or direct to the screen. |
|
Get the foreground colour of the caret. |
|
Get the colour of the background of the line containing the caret. |
|
Is the background of the line containing the caret in a different colour? |
|
Get the time in milliseconds that the caret is on and off. |
|
Returns the width of the insert mode caret |
|
Returns the character byte at the position |
|
Get the code page used to interpret the bytes of the document as characters. |
|
Retrieve the column number of a position, taking tab width into account. |
|
Retrieve the text of the line containing the caret. Returns the index of the caret on the line. |
|
Returns the position of the caret |
|
Get cursor type |
|
Retrieve a pointer to a function that processes messages for this Scintilla. |
|
Retrieve a pointer value to use as the first argument when calling the function returned by GetDirectFunction. |
|
Retrieve a pointer to the document object. |
|
Retrieve the current end of line mode - one of CRLF, CR, or LF. |
|
Retrieve the colour used in edge indication. |
|
Retrieve the column number which text should be kept within. |
|
Retrieve the edge highlight mode. |
|
Retrieve the position of the last correctly styled character. |
|
Retrieve the line at the top of the display. |
|
Get internal focus flag |
|
Is a header line expanded? |
|
Retrieve the fold level of a line. |
|
Find the parent line of a child line. |
|
Is the horizontal scroll bar visible? |
|
Get the highlighted indentation guide column. |
|
Retrieve indentation size. |
|
Are the indentation guides visible? |
|
Find the last child line of a header line. |
|
The number of characters in the document |
|
Retrieve the lexing language of the document. |
|
Retrieve the contents of a line. Returns the length of the line. |
|
Returns the number of lines in the document. There is always at least one. |
|
Get the position after the last visible characters on a line. |
|
Retrieve the position before the first non indentation character on a line. |
|
Retrieve the number of columns that a line is indented. |
|
Retrieve the extra styling information for a line. |
|
Is a line visible? |
|
Returns the size in pixels of the left margin. |
|
Retrieve the marker mask of a margin. |
|
Returns the size in pixels of the right margin. |
|
Retrieve the mouse click sensitivity of a margin. |
|
Retrieve the type of a margin. |
|
Retrieve the width of a margin in pixels. |
|
Retrieve the last line number that has line state. |
|
Get which document modification events are sent to the container. |
|
Is the document different from when it was last saved? |
|
Get whether mouse gets captured |
|
Retrieve the time the mouse must sit still to generate a mouse dwell event |
|
Returns true if overtype mode is active otherwise false is returned. |
|
Returns the print colour mode. |
|
Returns the print magnification. |
|
In read-only mode? |
|
Get the search flags used by SearchInTarget |
|
Retrieve the selected text. Return the length of the text. |
|
Returns the position at the end of the selection. |
|
Returns the position at the start of the selection. |
|
Get error status |
|
Returns the style byte at the position |
|
Retrieve number of bits in style bytes used to hold the lexical state. |
|
Retrieve a buffer of cells. Returns the number of bytes in the buffer not including terminating nulls. |
|
Does a tab pressed when caret is within indentation indent? |
|
Retrieve the visible size of a tab. |
|
Get the position that ends the target. |
|
Get the position that starts the target. |
|
Retrieve all the text in the document. Returns number of characters retrieved. |
|
Retrieve the number of characters in the document. |
|
Retrieve a range of text. Return the length of the text. |
|
Is undo history being collected? |
|
In palette mode? |
|
Retrieve whether tabs will be used in indentation. |
|
Are the end of line characters visible. |
|
Are white space characters currently visible? Returns one of SCWS_* constants. |
|
Retrieve the zoom level. |
|
Set caret to start of a line and ensure it is visible. |
|
Set caret to a position and ensure it is visible. |
|
Set the focus to this Scintilla widget. GTK+ Specific |
|
HandleNotify currently only updates the Modified flag of CScintilla. |
|
Make a range of lines invisible. |
|
Draw the selection in normal style or with selection highlighted. |
|
Move caret to first position on line. |
|
Move caret to first position on line extending selection to new caret position. |
|
Retrieve the foreground colour of an indicator. |
|
Retrieve the style of an indicator. |
|
Set the foreground colour of an indicator. |
|
Set an indicator to plain, squiggle or TT. |
|
Insert string at a position |
|
Is the control modified - gained from HandleNotify function. A using class should call IsScintillaNotify on a Notify message (WM_NOTIFY) and should then call HandleNotify if the result is true. |
|
Cut the line containing the caret. |
|
Delete the line containing the caret. |
|
Move caret down one line. |
|
Move caret down one line extending selection to new caret position. |
|
Move caret to last position on line. |
|
Move caret to last position on line extending selection to new caret position. |
|
Retrieve the line containing a position. |
|
How many characters are on a line, not including end of line characters. |
|
Scroll horizontally and vertically. |
|
Scroll the document down, keeping the caret visible. |
|
Scroll the document up, keeping the caret visible. |
|
Switch the current line with the previous. |
|
Move caret up one line. |
|
Move caret up one line extending selection to new caret position. |
|
Retrieves the number of lines completely visible. |
|
Transform the selection to lower case. |
|
Add a marker to a line. |
|
Set the symbol used for a particular marker number. |
|
Delete a marker from a line |
|
Delete all markers with a particular number from all lines |
|
Delete a marker. |
|
Get a bit mask of all the markers set on a line. |
|
Retrieve the line number at which a particular marker is located |
|
Find the next line after lineStart that includes a marker in mask. |
|
Find the previous line before lineStart that includes a marker in mask. |
|
Set the background colour used for a particular marker number. |
|
Set the foreground colour used for a particular marker number. |
|
Move the caret inside current view if it's not there already |
|
Insert a new line, may use a CRLF, CR or LF depending on EOL mode. |
|
Null operation. |
|
Move caret one page down. |
|
Move caret one page down extending selection to new caret position. |
|
Move caret one page up. |
|
Move caret one page up extending selection to new caret position. |
|
Paste the contents of the clipboard into the document replacing the selection. |
|
Retrieve the x value of the point in the window where a position is displayed. |
|
Retrieve the y value of the point in the window where a position is displayed. |
|
Retrieve the position at the start of a line. |
|
Find the position from a point within the window. |
|
Find the position from a point within the window but return INVALID_POSITION if not close to text. |
|
Redoes the next action on the undo history |
|
Release a reference to the document, deleting document if it fades to black. |
|
Replace the selected text with the argument text. |
|
Replace the target text with the argument text. Text is counted so it can contain nulls. Returns the length of the replacement text. |
|
Replace the target text with the argument text after \d processing. Text is counted so it can contain nulls. Looks for \d where d is between 1 and 9 and replaces these with the strings matched in the last search operation which were surrounded by \( and \). Returns the length of the replacement text including any change caused by processing the \d patterns. |
|
SPerform uses either SendMessage or the function pointer (Perform) to run scintilla commands on the relevant scintilla control. Reimplemented in CRecordingScintilla. |
|
Ensure the caret is visible. |
|
Sets the current caret position to be the search anchor. |
|
Search for a counted string in the target and set the target to the found range. Text is counted so it can contain nulls. Returns length of range or -1 for failure in which case target is not moved. |
|
Find some text starting at the search anchor. Does not ensure the selection is visible. |
|
Find some text starting at the search anchor and moving backwards. Does not ensure the selection is visible. |
|
Select all the text in the document. |
|
Is the selection a rectangular. The alternative is the more common stream selection. |
|
Set the selection anchor to a position. The anchor is the opposite end of the selection from the caret. |
|
Sets whether a backspace pressed when caret is within indentation unindents |
|
If drawing is buffered then each line of text is drawn into a bitmap buffer before drawing it to the screen to avoid flicker. |
|
Set the foreground colour of the caret. |
|
Set the colour of the background of the line containing the caret. |
|
Dsplay the background of the line containing the caret in a different colour. |
|
Get the time in milliseconds that the caret is on and off. 0 = steady on. |
|
Set the way the line the caret is on is kept visible. |
|
Set the width of the insert mode caret |
|
Set the code page used to interpret the bytes of the document as characters. The SC_CP_UTF8 value can be used to enter Unicode mode. |
|
Sets the position of the caret. |
|
Sets the cursor to one of the SC_CURSOR* values |
|
Change the document object used. |
|
Set the current end of line mode. |
|
Change the colour used in edge indication. |
|
Set the column number of the edge. If text goes past the edge then it is highlighted. |
|
The edge may be displayed by a line (EDGE_LINE) or by highlighting text that goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE). |
|
Change internal focus flag |
|
Show the children of a header line. |
|
Set some debugging options for folding |
|
Set the fold level of a line. This encodes an integer level along with flags indicating whether the line is a header and whether it is effectively white space. |
|
Set the Folding Margins. Call SetFoldingMargins to have CScintilla automatically set up the folding margin indicators in one of several given styles. The function also enables folding by setting the fold and fold.compact properties in Scintilla. Finally, it sets the fold flags to 16. By default, CScintilla handles all notification messages related to folding and implements Scite-Style folding control.
|
|
Show or hide the horizontal scroll bar. |
|
Set the highlighted indentation guide column. 0 = no highlighted guide. |
|
Set the number of spaces used for one level of indentation. |
|
Show or hide indentation guides. |
|
Set up the key words used by the lexer. |
|
Set the lexing language of the document. |
|
Set the lexing language of the document based on string name. |
|
Change the indentation of a line to a number of columns. |
|
Used to hold extra styling information for each line. |
|
Sets the size in pixels of the left margin. |
|
Set a mask that determines which markers are displayed in a margin. |
|
Sets the size in pixels of the right margin. |
|
Make a margin sensitive or insensitive to mouse clicks. |
|
Set a margin to be either numeric or symbolic. |
|
Set the width of a margin to a width expressed in pixels. |
|
Set which document modification events are sent to the container. |
|
Set whether the mouse is captured when its button is pressed |
|
Sets the time the mouse must sit still to generate a mouse dwell event |
|
Set to overtype (true) or insert mode |
|
Modify colours when printing for clearer printed text. |
|
Sets the print magnification added to the point size of each style for printing. |
|
Set up a value that may be used by a lexer for some optional feature. |
|
Set to read only or read write. |
|
Remember the current position in the undo history as the position at which the document was saved. |
|
Set the search flags used by SearchInTarget |
|
Select a range of text. |
|
Set the background colour of the selection and whether to use this setting. |
|
Set the foreground colour of the selection and whether to use this setting. |
|
Sets the position that ends the selection - this becomes the currentPosition. |
|
Sets the position that starts the selection - this becomes the anchor. |
|
Change error status - 0 = OK |
|
Divide each styling byte into lexical class bits (default:5) and indicator bits (default:3). If a lexer requires more than 32 lexical states, then this is used to expand the possible states. |
|
Change style from current styling position for length characters to a style and move the current styling position to after this newly styled segment. |
|
Set the styles for a segment of the document. |
|
Sets whether a tab pressed when caret is within indentation indents |
|
Change the visible size of a tab to be a multiple of the width of a space character. |
|
Sets the position that ends the target which is used for updating the document without affecting the scroll position. |
|
Sets the position that starts the target which is used for updating the document without affecting the scroll position. |
|
Replace the contents of the document with the argument text. |
|
Choose between collecting actions into the undo history and discarding them. |
|
In palette mode, Scintilla uses the environments palette calls to display more colours. This may lead to ugly displays. |
|
Indentation will only use space characters if useTabs is false, otherwise it will use a combination of tabs and spaces. |
|
Make the end of line characters visible or invisible |
|
Make white space characters invisible, always visible or visible outside indentation. |
|
Set the way the display area is determined when a particular line is to be moved to. |
|
Set the set of characters making up words for when moving or selecting by word. |
|
Set the zoom level. This number of points is added to the size of all fonts. It may be positive to magnify or negative to reduce. |
|
Make a range of lines visible. |
|
Start notifying the container of all key presses and commands. |
|
Set the current styling position to pos and the styling mask to mask. The styling mask can be used to protect some bits in each styling byte from modification. |
|
Stop notifying the container of all key presses and commands. |
|
Clear all the styles and make equivalent to the global default style. |
|
Reset the default style to its state at startup |
|
Set the background colour of a style. |
|
Set a style to be bold or not. |
|
Set a style to be mixed case, or to force upper or lower case. |
|
Set the character set of the font in a style. |
|
Set a style to have its end of line filled or not. |
|
Set the font of a style. |
|
Set the foreground colour of a style. |
|
Set a style to be italic or not. |
|
Set the size of characters of a style. |
|
Set a style to be underlined or not. |
|
Set a style to be visible or not. |
|
If selection is empty or all on one line replace the selection with a tab character. If more than one line selected, indent the lines. |
|
Switch a header line between expanded and contracted. |
|
Undo one action in the undo history. |
|
Transform the selection to upper case. |
|
Set whether a pop up menu is displayed automatically when the user presses the wrong mouse button. |
|
Display a list of strings and send notification when user chooses one. |
|
Move caret to before first visible character on line. If already there move to first character on line. |
|
Like VCHome but extending selection to new caret position. |
|
Find the display line of a document line taking hidden lines into account. |
|
Move caret left one word. |
|
Move caret left one word extending selection to new caret position. |
|
Move to the previous change in capitalistion |
|
Move to the previous change in capitalistion extending selection to new caret position. |
|
Move to the change next in capitalistion |
|
Move to the next change in capitalistion extending selection to new caret position. |
|
Move caret right one word. |
|
Move caret right one word extending selection to new caret position. |
|
Magnify the displayed text by increasing the sizes by 1 point. |
|
Make the displayed text smaller by decreasing the sizes by 1 point. |