| Home | Trees | Index | Help |
|
|---|
| Package wx :: Module stc :: Class StyledTextCtrl |
|
object--+ |Object--+ |EvtHandler--+ |Window--+ |Control--+ | StyledTextCtrl
EditWindow,
InspectionInfoPanel,
PyShellWindowProxy of C++ StyledTextCtrl class
| Method Summary | |
|---|---|
| Control |
Create a Control. |
Extend life of document. | |
Add array of cells to document. | |
Add text to the document at current position. | |
Add text to the document at current position. | |
Add UTF8 encoded text to the document at the current position. | |
Enlarge the document to a particular size of text bytes. | |
Append a string to the end of the document without changing the selection. | |
Append a string to the end of the document without changing the selection. | |
Append a UTF8 string to the end of the document without changing the selection. | |
| bool |
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. | |
| bool |
Retrieve whether or not autocompletion is hidden automatically when nothing matches. |
| bool |
Retrieve whether auto-completion cancelled by backspacing before start. |
| bool |
Retrieve whether a single item auto-completion list automatically choose the item. |
| int |
Get currently selected item position in the auto-completion list |
| bool |
Retrieve whether or not autocompletion deletes any word characters after the inserted text upon completion. |
| bool |
Retrieve state of ignore case flag. |
| int |
Set the maximum height, in rows, of auto-completion and user lists. |
| int |
Get the maximum width, in characters, of auto-completion and user lists. |
| int |
Retrieve the auto-completion list separator character. |
| int |
Retrieve the auto-completion list type-separator character. |
| int |
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. | |
Set whether or not autocompletion deletes any word characters after the inserted text upon completion. | |
Define a set of characters that when typed will cause the autocompletion to choose the selected item. | |
Set whether case is significant when performing auto-completion searches. | |
Set the maximum height, in rows, of auto-completion and user lists. | |
Set the maximum width, in characters, of auto-completion and user lists. | |
Change the separator character in the string setting up an auto-completion list. | |
Change the type-separator character in the string setting up an auto-completion list. | |
Display a auto-completion list. | |
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. | |
Highlight the character at a position indicating there is no matching brace. | |
Highlight the characters at two positions. | |
| int |
Find the position of a matching brace or INVALID_POSITION if no match. |
| bool |
Is there an active call tip? |
Remove the call tip from the screen. | |
| int |
Retrieve the position where the caret was before displaying the call tip. |
Set the background colour for the call tip. | |
Set the foreground colour for the call tip. | |
Set the foreground colour for the highlighted part of the call tip. | |
Highlight a segment of the definition. | |
Show a call tip containing a definition near position pos. | |
Enable use of STYLE_CALLTIP and set call tip tab size in pixels. | |
Cancel any modes such as call tip or auto-completion list display. | |
| bool |
Will a paste succeed? |
| bool |
Are there any redoable actions in the undo history? |
| bool |
Are there any undoable actions in the undo history? |
Move caret left one character. | |
Move caret left one character extending selection to new caret position. | |
Move caret left one character, extending rectangular selection to new caret position. | |
Move caret right one character. | |
Move caret right one character extending selection to new caret position. | |
Move caret right one character, extending rectangular selection to new caret position. | |
Set the last x chosen value to be the caret x position. | |
Clear the selection. | |
Delete all text in the document. | |
Set all style bytes to 0, remove all folding information. | |
Clear all the registered images. | |
When key+modifier combination km is pressed perform msg. | |
When key+modifier combination km is pressed do nothing. | |
Drop all key mappings. | |
Perform one of the operations defined by the wx.stc.STC_CMD_* constants. | |
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. | |
Copy a range of text to the clipboard. | |
Copy argument text to the clipboard. | |
| bool |
Do the 2nd phase and create the GUI control. |
| void |
Create a new document object. |
Cut the selection to the clipboard. | |
Delete the selection or if no selection, the character before the caret. | |
Delete the selection or if no selection, the character before the caret. | |
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. | |
| int |
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. | |
| int |
Allow for simulating a DnD DragOver. |
| bool |
Allow for simulating a DnD DropText. |
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 the caret is visible. | |
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. | |
| int |
Find the position of a column on a line taking into account tabs and multi-byte characters. |
| int |
Find some text in the document. |
| int |
On Windows, will draw the document into a display context such as a printer. |
Insert a Form Feed character. | |
| int |
Returns the position of the opposite end of the selection to the caret. |
| bool |
Does a backspace pressed when caret is within indentation unindent? |
| bool |
Is drawing done first into a buffer or direct to the screen? |
| Colour |
Get the foreground colour of the caret. |
| Colour |
Get the colour of the background of the line containing the caret. |
| int |
Get the background alpha of the caret line. |
| Colour |
Get the colour of the background of the line containing the caret. |
| bool |
Is the background of the line containing the caret in a different colour? |
| int |
Get the time in milliseconds that the caret is on and off. |
| bool |
Can the caret preferred x position only be changed by explicit movement commands? |
| int |
Returns the width of the insert mode caret. |
| int |
Returns the character byte at the position. |
| int |
Get the code page used to interpret the bytes of the document as characters. |
| int |
Retrieve the column number of a position, taking tab width into account. |
| int |
Get the way control characters are displayed. |
| (text, pos) |
Retrieve the text of the line containing the caret, and also theindex of the caret on the line. |
| (text, index) |
Retrieve the text of the line containing the caret, and also the index of the caret on the line. |
Retrieve the UTF8 text of the line containing the caret, and also the index of the caret on the line. | |
| int |
Returns the line number of the line with the caret. |
| int |
Returns the position of the caret. |
| void |
Retrieve a pointer to the document object. |
| Colour |
Retrieve the colour used in edge indication. |
| int |
Retrieve the column number which text should be kept within. |
| int |
Retrieve the edge highlight mode. |
| bool |
Retrieve whether the maximum scroll position has the last line at the bottom of the view. |
| int |
Retrieve the position of the last correctly styled character. |
| int |
Retrieve the current end of line mode - one of CRLF, CR, or LF. |
| int |
Retrieve the display line at the top of the display. |
| bool |
Is a header line expanded? |
| int |
Retrieve the fold level of a line. |
| int |
Find the parent line of a child line. |
| int |
Get the highlighted indentation guide column. |
| int |
Retrieve indentation size. |
| bool |
Are the indentation guides visible? |
| int |
Find the last child line of a header line. |
| bool | GetLastKeydownProcessed(self)
|
| int |
Retrieve the degree of caching of layout information. |
| int |
Returns the number of characters in the document. |
| int |
Retrieve the lexing language of the document. |
| String |
Retrieve the contents of a line. |
| int |
Returns the number of lines in the document. |
| int |
Get the position after the last visible characters on a line. |
| int |
Retrieve the number of columns that a line is indented. |
| int |
Retrieve the position before the first non indentation character on a line. |
| wxCharBuffer |
Retrieve the contents of a line. |
| int |
Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line). |
| int |
Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line). |
| int |
Retrieve the extra styling information for a line. |
Retrieve the contents of a line as UTF8. | |
| bool |
Is a line visible? |
| int |
Returns the size in pixels of the left margin. |
| int |
Retrieve the marker mask of a margin. |
| int |
Returns the size in pixels of the right margin. |
| bool |
Retrieve the mouse click sensitivity of a margin. |
| int |
Retrieve the type of a margin. |
| int |
Retrieve the width of a margin in pixels. |
| int |
Retrieve the last line number that has line state. |
| int |
Get which document modification events are sent to the container. |
| bool |
Is the document different from when it was last saved? |
| bool |
Get whether mouse gets captured. |
| int |
Retrieve the time the mouse must sit still to generate a mouse dwell event. |
| bool |
Returns true if overtype mode is active otherwise false is returned. |
| bool |
Get convert-on-paste setting |
| int |
Returns the print colour mode. |
| int |
Returns the print magnification. |
| int |
Is printing line wrapped? |
| String |
Retrieve a 'property' value previously set with SetProperty. |
| String |
Retrieve a 'property' value previously set with SetProperty, with '$()' variable replacement on returned buffer. |
| int |
Retrieve a 'property' value previously set with SetProperty, interpreted as an int AFTER any '$()' variable replacement. |
| bool |
In read-only mode? |
| int |
Retrieve the document width assumed for scrolling. |
| int |
Get the search flags used by SearchInTarget. |
| int |
Get the alpha of the selection. |
| String |
Retrieve the selected text. |
| wxCharBuffer |
Retrieve the selected text. |
Retrieve the selected text as UTF8. | |
| (startPos, endPos) |
Retrieve the start and end positions of the current selection. |
| int |
Returns the position at the end of the selection. |
| int |
Get the mode of the current selection. |
| int |
Returns the position at the start of the selection. |
| int |
Get error status. |
| int |
Get cursor type. |
| bool |
Get internal focus flag. |
| int |
Returns the style byte at the position. |
| int |
Retrieve number of bits in style bytes used to hold the lexical state. |
| int |
Retrieve the number of bits the current lexer needs for styling. |
| wxMemoryBuffer |
Retrieve a buffer of cells. |
| bool |
Does a tab pressed when caret is within indentation indent? |
| int |
Retrieve the visible size of a tab. |
| int |
Get the position that ends the target. |
| int |
Get the position that starts the target. |
| String |
Retrieve all the text in the document. |
| int |
Retrieve the number of characters in the document. |
| String |
Retrieve a range of text. |
| wxCharBuffer |
Retrieve a range of text. |
Retrieve a range of text as UTF8. | |
| wxCharBuffer |
Retrieve all the text in the document. |
Retrieve all the text in the document as UTF8. | |
| bool |
Is drawing done in two phases with backgrounds drawn before foregrounds? |
| bool |
Is undo history being collected? |
| bool |
Returns the current UseAntiAliasing setting. |
| bool |
Is the horizontal scroll bar visible? |
| bool |
Retrieve whether tabs will be used in indentation. |
| bool |
Is the vertical scroll bar visible? |
| bool |
Are the end of line characters visible? |
| int |
Are white space characters currently visible? Returns one of SCWS_* constants. |
| int |
Retrieve whether text is word wrapped. |
| int |
Retrive the start indent for wrapped lines. |
| int |
Retrive the display mode of visual flags for wrapped lines. |
| int |
Retrive the location of visual flags for wrapped lines. |
| int | GetXOffset(self)
|
| int |
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. | |
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 display line. | |
Move caret to first position on display line extending selection to new caret position. | |
Move caret to first position on line extending selection to new caret position. | |
Move caret to first position on line, extending rectangular selection to new caret position. | |
These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? except they behave differently when word-wrap is enabled: They go first to the start / end of the display line, like (Home|LineEnd)Display The difference is that, the cursor is already at the point, it goes on to the start or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. | |
HomeWrapExtend(self)
| |
| Colour |
Retrieve the foreground colour of an indicator. |
| int |
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. | |
Insert string at a position. | |
Insert UTF8 encoded text at a position. | |
Copy the line containing the caret. | |
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 down one line, extending rectangular selection to new caret position. | |
Duplicate the current line. | |
Move caret to last position on line. | |
Move caret to last position on display line. | |
Move caret to last position on display line extending selection to new caret position. | |
Move caret to last position on line extending selection to new caret position. | |
Move caret to last position on line, extending rectangular selection to new caret position. | |
LineEndWrap(self)
| |
LineEndWrapExtend(self)
| |
| int |
Retrieve the line containing a position. |
| int |
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. | |
Join the lines in the target. | |
| int |
Retrieves the number of lines completely visible. |
Split the lines in the target into lines that are less wide than pixelWidth where possible. | |
Switch the current line with the previous. | |
Move caret up one line. | |
Move caret up one line extending selection to new caret position. | |
Move caret up one line, extending rectangular selection to new caret position. | |
| bool |
Load the contents of filename into the editor |
Transform the selection to lower case. | |
| int |
Add a marker to a line, returning an ID which can be used to find or delete the marker. |
Add a set of markers to a line. | |
Set the symbol used for a particular marker number, and optionally the fore and background colours. | |
Define a marker from a bitmap | |
Delete a marker from a line. | |
Delete all markers with a particular number from all lines. | |
Delete a marker. | |
| int |
Get a bit mask of all the markers set on a line. |
| int |
Retrieve the line number at which a particular marker is located. |
| int |
Find the next line after lineStart that includes a marker in mask. |
| int |
Find the previous line before lineStart that includes a marker in mask. |
Set the alpha used for a marker that is drawn in the text area, not the margin. | |
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. | |
Move caret one page down. | |
Move caret one page down extending selection to new caret position. | |
Move caret one page down, extending rectangular selection to new caret position. | |
Move caret one page up. | |
Move caret one page up extending selection to new caret position. | |
Move caret one page up, extending rectangular selection to new caret position. | |
Move caret between paragraphs (delimited by empty lines). | |
ParaDownExtend(self)
| |
ParaUp(self)
| |
ParaUpExtend(self)
| |
Paste the contents of the clipboard into the document replacing the selection. | |
| Point |
Retrieve the point in the window where a position is displayed. |
| int |
Given a valid document position, return the next position taking code page into account. |
| int |
Given a valid document position, return the previous position taking code page into account. |
| int |
Retrieve the position at the start of a line. |
| int |
Find the position from a point within the window. |
| int |
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. | |
Register an image for use in autocompletion lists. | |
Release a reference to the document, deleting document if it fades to black. | |
Replace the selected text with the argument text. | |
| int |
Replace the target text with the argument text. |
| int |
Replace the target text with the argument text after d processing. |
| bool |
Write the contents of the editor to filename |
Scroll enough to make the given column visible | |
Scroll enough to make the given line visible. | |
Sets the current caret position to be the search anchor. | |
| int |
Search for a counted string in the target and set the target to the found range. |
| int |
Find some text starting at the search anchor. |
| int |
Find some text starting at the search anchor and moving backwards. |
Select all the text in the document. | |
Duplicate the selection. | |
| bool |
Is the selection rectangular? The alternative is the more common stream selection. |
| long |
Send a message to Scintilla. |
Set the selection anchor to a position. | |
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. | |
Set background alpha of the caret line. | |
Set the colour of the background of the line containing the caret. | |
Display the background of the line containing the caret in a different colour. | |
Get the time in milliseconds that the caret is on and off. | |
Stop the caret preferred x position changing when the user types. | |
Set the width of the insert mode caret. | |
Reset the set of characters for whitespace and word characters to the defaults. | |
Set the code page used to interpret the bytes of the document as characters. | |
Change the way control characters are displayed: If symbol is < 32, keep the drawn way, else, use the given character. | |
| |