View Source wxStyledTextCtrl (wx v2.4.2)

Functions for wxStyledTextCtrl class

A wxWidgets implementation of the Scintilla source code editing component.

As well as features found in standard text editing components, Scintilla includes features especially useful when editing and debugging source code. These include support for syntax styling, error indicators, code completion and call tips.

The selection margin can contain markers like those used in debuggers to indicate breakpoints and the current line. Styling choices are more open than with many editors, allowing the use of proportional fonts, bold and italics, multiple foreground and background colours and multiple fonts.

wxStyledTextCtrl is a 1 to 1 mapping of "raw" scintilla interface, whose documentation can be found in the Scintilla website (http://www.scintilla.org/).

Please see wxStyledTextEvent for the documentation of all event types you can use with wxStyledTextCtrl.

Index of the member groups

Links for quick access to the various categories of wxStyledTextCtrl functions:

See: wxStyledTextEvent

This class is derived (and can use functions) from: wxControl wxWindow wxEvtHandler

wxWidgets docs: wxStyledTextCtrl

Summary

Functions

Add text to the document at current position.

Add text to the document at 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.

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.

Get currently selected item position in the auto-completion list.

Retrieve whether or not autocompletion deletes any word characters after the inserted text upon completion.

Retrieve state of ignore case flag.

Set the maximum height, in rows, of auto-completion and user lists.

Get the maximum width, in characters, of auto-completion and user lists.

Retrieve the auto-completion list separator character.

Retrieve the auto-completion list type-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.

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.

Find the position of a matching brace or wxSTC_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.

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 wxSTC_STYLE_CALLTIP and set call tip tab size in pixels.

Cancel any modes such as call tip or auto-completion list display.

Will a paste succeed?

Are there any redoable actions in the undo history?

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 keyDefinition is pressed perform sciCommand.

When key+modifier combination keyDefinition is pressed do nothing.

Drop all key mappings.

Perform one of the operations defined by the wxSTCCMD* 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.

Create the UI elements for a STC that was created with the default ctor.

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.

Destructor.

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.

Allow for simulating a DnD DragOver.

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.

Find the position of a column on a line taking into account tabs and multi-byte characters.

Find some text in the document. @param minPos The position (starting from zero) in the document at which to begin the search @param maxPos The last position (starting from zero) in the document to which the search will be restricted. @param text The text to search for. @param flags (Optional) The search flags. This should be a bit list containing one or more of the @link wxStyledTextCtrl::wxSTC_FIND_WHOLEWORD wxSTC_FIND_* @endlink constants.

On Windows, will draw the document into a display context such as a printer.

Insert a Form Feed character.

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 background alpha of the caret line.

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.

Can the caret preferred x position only be changed by explicit movement commands?

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.

Get the way control characters are displayed.

Retrieve the text of the line containing the caret.

Retrieve the text of the line containing the caret.

Returns the line number of the line with the caret.

Returns the position of the caret.

Retrieve the colour used in edge indication.

Retrieve the column number which text should be kept within.

Retrieve the edge highlight mode.

Retrieve whether the maximum scroll position has the last line at the bottom of the view.

Retrieve the position of the last correctly styled character.

Retrieve the current end of line mode - one of wxSTC_EOL_CRLF, wxSTC_EOL_CR, or wxSTC_EOL_LF.

Retrieve the display line at the top of the display.

Is a header line expanded?

Retrieve the fold level of a line.

Find the parent line of a child line.

Get the highlighted indentation guide column.

Retrieve indentation size.

Are the indentation guides visible?

Find the last child line of a header line.

Can be used to prevent the EVT_CHAR handler from adding the char.

Retrieve the degree of caching of layout information.

Returns the number of bytes in the document.

Retrieve the lexing language of the document.

Retrieve the contents of a line.

Returns the number of lines in the document.

Get the position after the last visible characters on a line.

Retrieve the number of columns that a line is indented.

Retrieve the position before the first non indentation character on a line.

Retrieve the contents of a line.

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.

Get convert-on-paste setting.

Returns the print colour mode.

Returns the print magnification.

Is printing line wrapped?

Retrieve a "property" value previously set with SetProperty.

In read-only mode?

Retrieve the document width assumed for scrolling.

Get the search flags used by SearchInTarget.

Get the alpha of the selection.

Retrieve the selected text.

Retrieve the selected text.

Gets the current selection span.

Returns the position at the end of the selection.

Get the mode of the current selection.

Returns the position at the start of the selection.

Get cursor type.

Get internal focus flag.

Get error status.

Returns the style byte at the position.

Retrieve number of bits in style bytes used to hold the lexical state.

Retrieve the number of bits the current lexer needs for styling.

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.

Retrieve the number of characters in the document.

Retrieve a range of text.

Retrieve a range of text.

Retrieve all the text in the document.

Is drawing done in two phases with backgrounds drawn before foregrounds?

Is undo history being collected?

Returns the current UseAntiAliasing setting.

Is the horizontal scroll bar visible?

Retrieve whether tabs will be used in indentation.

Is the vertical scroll bar visible?

Are the end of line characters visible?

Are white space characters currently visible? Returns one of wxSTCWS* constants.

Retrieve whether text is word wrapped.

Retrieve the start indent for wrapped lines.

Retrieve the display mode of visual flags for wrapped lines.

Retrieve the location of visual flags for wrapped lines.

Get the xOffset (ie, horizontal scroll position).

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.

Like HomeExtend but when word-wrap is enabled extends first to start of display line HomeDisplayExtend, then to start of document line HomeExtend.

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.

Insert string 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.

Like LineEnd but when word-wrap is enabled goes first to end of display line LineEndDisplay, then to start of document line LineEnd.

Like LineEndExtend but when word-wrap is enabled extends first to end of display line LineEndDisplayExtend, then to start of document line LineEndExtend.

Retrieve the line containing a position.

How many characters are on a line, 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.

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.

Load the contents of filename into the editor.

Transform the selection to lower case.

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.

Delete a marker from a line.

Delete all markers with a particular number from all lines.

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 at or after lineStart that includes a marker in mask.

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.

Default ctor.

Ctor.

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.

Extend selection down one paragraph (delimited by empty lines).

Move caret up one paragraph (delimited by empty lines).

Extend selection up one paragraph (delimited by empty lines).

Paste the contents of the clipboard into the document replacing the selection.

Retrieve the point in the window where a position is displayed.

Given a valid document position, return the next position taking code page into account.

Given a valid document position, return the previous position taking code page into account.

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 wxSTC_INVALID_POSITION if not close to text.

Redoes the next action on the undo history.

Register an image for use in autocompletion lists.

Replace the selected text with the argument text.

Replace the target text with the argument text.

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.

Search for a counted string in the target and set the target to the found range.

Find some text starting at the search anchor.

Find some text starting at the search anchor and moving backwards.

Select all the text in the document.

Duplicate the selection.

Is the selection rectangular? The alternative is the more common stream selection.

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 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.

Sets the position of the caret.

Change the colour used in edge indication.

Set the column number of the edge.

The edge may be displayed by a line (wxSTC_EDGE_LINE/wxSTC_EDGE_MULTILINE) or by highlighting text that goes beyond it (wxSTC_EDGE_BACKGROUND) or not displayed at all (wxSTC_EDGE_NONE).

Set the current end of line mode.

Show the children of a header line.

Set some style options for folding.

Set the fold level of a line.

Set one of the colours used as a chequerboard pattern in the fold margin.

Set the other colour used as a chequerboard pattern in the fold margin.

Set the highlighted indentation guide column.

Set a back colour for active hotspots.

Set a fore colour for active hotspots.

Enable / Disable underlining active hotspots.

Limit hotspots to single line so hotspots on two lines don't merge.

Set the horizontal scrollbar to use instead of the one that's built-in.

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.

Returns the line number of the line with the caret.

Sets the degree of caching of layout information.

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 the left and right margin in the edit area, measured in pixels.

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.

Enable/Disable convert-on-paste for line endings.

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.

Sets the document width assumed for scrolling.

Set the search flags used by SearchInTarget.

Set the alpha of the selection.

Set the background colour of the main and additional selections and whether to use this setting.

Selects the text starting at the first position up to (but not including) the character at the last position.

Sets the position that ends the selection - this becomes the caret.

Set the selection mode to stream (wxSTC_SEL_STREAM) or rectangular (wxSTC_SEL_RECTANGLE/wxSTC_SEL_THIN) or by lines (wxSTC_SEL_LINES).

Sets the position that starts the selection - this becomes the anchor.

Set the foreground colour of the main and additional selections and whether to use this setting.

Sets the cursor to one of the wxSTC_CURSOR* values.

Change internal focus flag.

Change error status - 0 = OK.

Set the styles for a segment of the document.

Change style from current styling position for length characters to a style and move the current styling position to after this newly styled segment.

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.

Replace the contents of the document with the argument text.

In twoPhaseDraw mode, drawing is performed in two phases, first the background and then the foreground.

Choose between collecting actions into the undo history and discarding them.

Show or hide the horizontal scroll bar.

Indentation will only use space characters if useTabs is false, otherwise it will use a combination of tabs and spaces.

Show or hide the vertical scroll bar.

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 by Find, FindNext, GotoLine, etc.

Set the vertical scrollbar to use instead of the one that's built-in.

Set the background colour of all whitespace and whether to use this setting.

Set the set of characters making up whitespace for when moving or selecting by word.

Set the foreground colour of all whitespace and whether to use this setting.

Set the set of characters making up words for when moving or selecting by word.

Sets whether text is word wrapped.

Set the start indent for wrapped lines.

Set the display mode of visual flags for wrapped lines.

Set the location of visual flags for wrapped lines.

Set the way the caret is kept visible when going sideways.

Set the way the line the caret is on is kept visible.

Set the zoom level.

Make a range of lines visible.

Start notifying the container of all key presses and commands.

Set the current styling position to start.

Stop notifying the container of all key presses and commands.

Move caret to bottom of page, or one page down if already at bottom of page.

Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position.

Move caret to top of page, or one page up if already at top of page.

Move caret to top of page, or one page up if already at top of page, extending selection to new caret position.

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 style size, face, bold, italic, and underline attributes from a wxFont's attributes.

Set all font style attributes at once.

Set the font encoding to be used by a style.

Set the foreground colour of a style.

Set a style to be a hotspot or not.

Set a style to be italic or not.

Set the size of characters of a style.

Extract style settings from a spec-string which is composed of one or more of the following comma separated elements

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.

Make the target range start and end be the same as the selection range start and end.

Retrieve the height of a particular line of text in pixels.

Measure the pixel width of some text in a particular style.

Switch between sticky and non-sticky: meant to be bound to a key.

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 on certain areas.

Display a list of strings and send notification when user chooses one.

Move caret to before first visible character on line.

Like VCHome but extending selection to new caret position.

Move caret to before first visible character on line.

Like VCHome but when word-wrap is enabled goes first to start of display line VCHomeDisplay, then behaves like VCHome.

Like VCHomeExtend but when word-wrap is enabled extends first to start of display line VCHomeDisplayExtend, then behaves like VCHomeExtend.

Find the display line of a document line taking hidden lines into account.

Get position of end of word.

Move caret left one word.

Move caret left one word, position cursor at end of word.

Move caret left one word, position cursor at end of word, extending selection to new caret position.

Move caret left one word extending selection to new caret position.

Move to the previous change in capitalisation.

Move to the previous change in capitalisation extending selection to new caret position.

Move to the change next in capitalisation.

Move to the next change in capitalisation extending selection to new caret position.

Move caret right one word.

Move caret right one word, position cursor at end of word.

Move caret right one word, position cursor at end of word, extending selection to new caret position.

Move caret right one word extending selection to new caret position.

Get position of start of word.

The number of display lines needed to wrap a document line.

Magnify the displayed text by increasing the sizes by 1 point.

Make the displayed text smaller by decreasing the sizes by 1 point.

Types

-type wxStyledTextCtrl() :: wx:wx_object().

Functions

-spec addText(This, Text) -> ok when This :: wxStyledTextCtrl(), Text :: unicode:chardata().

Add text to the document at current position.

-spec addTextRaw(This, Text) -> ok when This :: wxStyledTextCtrl(), Text :: binary().
-spec addTextRaw(This, Text, [Option]) -> ok
              when This :: wxStyledTextCtrl(), Text :: binary(), Option :: {length, integer()}.

Add text to the document at current position.

-spec allocate(This, Bytes) -> ok when This :: wxStyledTextCtrl(), Bytes :: integer().

Enlarge the document to a particular size of text bytes.

-spec appendText(This, Text) -> ok when This :: wxStyledTextCtrl(), Text :: unicode:chardata().

Append a string to the end of the document without changing the selection.

Link to this function

appendTextRaw(This, Text)

View Source
-spec appendTextRaw(This, Text) -> ok when This :: wxStyledTextCtrl(), Text :: binary().
-spec appendTextRaw(This, Text, [Option]) -> ok
                 when This :: wxStyledTextCtrl(), Text :: binary(), Option :: {length, integer()}.

Append a string to the end of the document without changing the selection.

-spec autoCompActive(This) -> boolean() when This :: wxStyledTextCtrl().

Is there an auto-completion list visible?

-spec autoCompCancel(This) -> ok when This :: wxStyledTextCtrl().

Remove the auto-completion list from the screen.

-spec autoCompComplete(This) -> ok when This :: wxStyledTextCtrl().

User has selected an item so remove the list and insert the selection.

Link to this function

autoCompGetAutoHide(This)

View Source
-spec autoCompGetAutoHide(This) -> boolean() when This :: wxStyledTextCtrl().

Retrieve whether or not autocompletion is hidden automatically when nothing matches.

Link to this function

autoCompGetCancelAtStart(This)

View Source
-spec autoCompGetCancelAtStart(This) -> boolean() when This :: wxStyledTextCtrl().

Retrieve whether auto-completion cancelled by backspacing before start.

Link to this function

autoCompGetChooseSingle(This)

View Source
-spec autoCompGetChooseSingle(This) -> boolean() when This :: wxStyledTextCtrl().

Retrieve whether a single item auto-completion list automatically choose the item.

Link to this function

autoCompGetCurrent(This)

View Source
-spec autoCompGetCurrent(This) -> integer() when This :: wxStyledTextCtrl().

Get currently selected item position in the auto-completion list.

Link to this function

autoCompGetDropRestOfWord(This)

View Source
-spec autoCompGetDropRestOfWord(This) -> boolean() when This :: wxStyledTextCtrl().

Retrieve whether or not autocompletion deletes any word characters after the inserted text upon completion.

Link to this function

autoCompGetIgnoreCase(This)

View Source
-spec autoCompGetIgnoreCase(This) -> boolean() when This :: wxStyledTextCtrl().

Retrieve state of ignore case flag.

Link to this function

autoCompGetMaxHeight(This)

View Source
-spec autoCompGetMaxHeight(This) -> integer() when This :: wxStyledTextCtrl().

Set the maximum height, in rows, of auto-completion and user lists.

Link to this function

autoCompGetMaxWidth(This)

View Source
-spec autoCompGetMaxWidth(This) -> integer() when This :: wxStyledTextCtrl().

Get the maximum width, in characters, of auto-completion and user lists.

Link to this function

autoCompGetSeparator(This)

View Source
-spec autoCompGetSeparator(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve the auto-completion list separator character.

Link to this function

autoCompGetTypeSeparator(This)

View Source
-spec autoCompGetTypeSeparator(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve the auto-completion list type-separator character.

-spec autoCompPosStart(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve the position of the caret when the auto-completion list was displayed.

Link to this function

autoCompSelect(This, Select)

View Source
-spec autoCompSelect(This, Select) -> ok when This :: wxStyledTextCtrl(), Select :: unicode:chardata().

Select the item in the auto-completion list that starts with a string.

Link to this function

autoCompSetAutoHide(This, AutoHide)

View Source
-spec autoCompSetAutoHide(This, AutoHide) -> ok when This :: wxStyledTextCtrl(), AutoHide :: boolean().

Set whether or not autocompletion is hidden automatically when nothing matches.

Link to this function

autoCompSetCancelAtStart(This, Cancel)

View Source
-spec autoCompSetCancelAtStart(This, Cancel) -> ok when This :: wxStyledTextCtrl(), Cancel :: boolean().

Should the auto-completion list be cancelled if the user backspaces to a position before where the box was created.

Link to this function

autoCompSetChooseSingle(This, ChooseSingle)

View Source
-spec autoCompSetChooseSingle(This, ChooseSingle) -> ok
                           when This :: wxStyledTextCtrl(), ChooseSingle :: boolean().

Should a single item auto-completion list automatically choose the item.

Link to this function

autoCompSetDropRestOfWord(This, DropRestOfWord)

View Source
-spec autoCompSetDropRestOfWord(This, DropRestOfWord) -> ok
                             when This :: wxStyledTextCtrl(), DropRestOfWord :: boolean().

Set whether or not autocompletion deletes any word characters after the inserted text upon completion.

Link to this function

autoCompSetFillUps(This, CharacterSet)

View Source
-spec autoCompSetFillUps(This, CharacterSet) -> ok
                      when This :: wxStyledTextCtrl(), CharacterSet :: unicode:chardata().

Define a set of characters that when typed will cause the autocompletion to choose the selected item.

Link to this function

autoCompSetIgnoreCase(This, IgnoreCase)

View Source
-spec autoCompSetIgnoreCase(This, IgnoreCase) -> ok
                         when This :: wxStyledTextCtrl(), IgnoreCase :: boolean().

Set whether case is significant when performing auto-completion searches.

Link to this function

autoCompSetMaxHeight(This, RowCount)

View Source
-spec autoCompSetMaxHeight(This, RowCount) -> ok when This :: wxStyledTextCtrl(), RowCount :: integer().

Set the maximum height, in rows, of auto-completion and user lists.

The default is 5 rows.

Link to this function

autoCompSetMaxWidth(This, CharacterCount)

View Source
-spec autoCompSetMaxWidth(This, CharacterCount) -> ok
                       when This :: wxStyledTextCtrl(), CharacterCount :: integer().

Set the maximum width, in characters, of auto-completion and user lists.

Set to 0 to autosize to fit longest item, which is the default.

Link to this function

autoCompSetSeparator(This, SeparatorCharacter)

View Source
-spec autoCompSetSeparator(This, SeparatorCharacter) -> ok
                        when This :: wxStyledTextCtrl(), SeparatorCharacter :: integer().

Change the separator character in the string setting up an auto-completion list.

Default is space but can be changed if items contain space.

Link to this function

autoCompSetTypeSeparator(This, SeparatorCharacter)

View Source
-spec autoCompSetTypeSeparator(This, SeparatorCharacter) -> ok
                            when This :: wxStyledTextCtrl(), SeparatorCharacter :: integer().

Change the type-separator character in the string setting up an auto-completion list.

Default is '?' but can be changed if items contain '?'.

Link to this function

autoCompShow(This, LengthEntered, ItemList)

View Source
-spec autoCompShow(This, LengthEntered, ItemList) -> ok
                when
                    This :: wxStyledTextCtrl(),
                    LengthEntered :: integer(),
                    ItemList :: unicode:chardata().

Display a auto-completion list.

The lengthEntered parameter indicates how many characters before the caret should be used to provide context.

Link to this function

autoCompStops(This, CharacterSet)

View Source
-spec autoCompStops(This, CharacterSet) -> ok
                 when This :: wxStyledTextCtrl(), CharacterSet :: unicode:chardata().

Define a set of character that when typed cancel the auto-completion list.

-spec backTab(This) -> ok when This :: wxStyledTextCtrl().

Dedent the selected lines.

-spec beginUndoAction(This) -> ok when This :: wxStyledTextCtrl().

Start a sequence of actions that is undone and redone as a unit.

May be nested.

Link to this function

braceBadLight(This, Pos)

View Source
-spec braceBadLight(This, Pos) -> ok when This :: wxStyledTextCtrl(), Pos :: integer().

Highlight the character at a position indicating there is no matching brace.

Link to this function

braceHighlight(This, PosA, PosB)

View Source
-spec braceHighlight(This, PosA, PosB) -> ok
                  when This :: wxStyledTextCtrl(), PosA :: integer(), PosB :: integer().

Highlight the characters at two positions.

-spec braceMatch(This, Pos) -> integer() when This :: wxStyledTextCtrl(), Pos :: integer().

Find the position of a matching brace or wxSTC_INVALID_POSITION if no match.

-spec callTipActive(This) -> boolean() when This :: wxStyledTextCtrl().

Is there an active call tip?

-spec callTipCancel(This) -> ok when This :: wxStyledTextCtrl().

Remove the call tip from the screen.

-spec callTipPosAtStart(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve the position where the caret was before displaying the call tip.

Since: 3.1.0

Link to this function

callTipSetBackground(This, Back)

View Source
-spec callTipSetBackground(This, Back) -> ok when This :: wxStyledTextCtrl(), Back :: wx:wx_colour().

Set the background colour for the call tip.

Link to this function

callTipSetForeground(This, Fore)

View Source
-spec callTipSetForeground(This, Fore) -> ok when This :: wxStyledTextCtrl(), Fore :: wx:wx_colour().

Set the foreground colour for the call tip.

Link to this function

callTipSetForegroundHighlight(This, Fore)

View Source
-spec callTipSetForegroundHighlight(This, Fore) -> ok
                                 when This :: wxStyledTextCtrl(), Fore :: wx:wx_colour().

Set the foreground colour for the highlighted part of the call tip.

Link to this function

callTipSetHighlight(This, HighlightStart, HighlightEnd)

View Source
-spec callTipSetHighlight(This, HighlightStart, HighlightEnd) -> ok
                       when
                           This :: wxStyledTextCtrl(),
                           HighlightStart :: integer(),
                           HighlightEnd :: integer().

Highlight a segment of the definition.

Link to this function

callTipShow(This, Pos, Definition)

View Source
-spec callTipShow(This, Pos, Definition) -> ok
               when This :: wxStyledTextCtrl(), Pos :: integer(), Definition :: unicode:chardata().

Show a call tip containing a definition near position pos.

Link to this function

callTipUseStyle(This, TabSize)

View Source
-spec callTipUseStyle(This, TabSize) -> ok when This :: wxStyledTextCtrl(), TabSize :: integer().

Enable use of wxSTC_STYLE_CALLTIP and set call tip tab size in pixels.

-spec cancel(This) -> ok when This :: wxStyledTextCtrl().

Cancel any modes such as call tip or auto-completion list display.

-spec canPaste(This) -> boolean() when This :: wxStyledTextCtrl().

Will a paste succeed?

-spec canRedo(This) -> boolean() when This :: wxStyledTextCtrl().

Are there any redoable actions in the undo history?

-spec canUndo(This) -> boolean() when This :: wxStyledTextCtrl().

Are there any undoable actions in the undo history?

-spec charLeft(This) -> ok when This :: wxStyledTextCtrl().

Move caret left one character.

-spec charLeftExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret left one character extending selection to new caret position.

Link to this function

charLeftRectExtend(This)

View Source
-spec charLeftRectExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret left one character, extending rectangular selection to new caret position.

-spec charRight(This) -> ok when This :: wxStyledTextCtrl().

Move caret right one character.

-spec charRightExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret right one character extending selection to new caret position.

Link to this function

charRightRectExtend(This)

View Source
-spec charRightRectExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret right one character, extending rectangular selection to new caret position.

-spec chooseCaretX(This) -> ok when This :: wxStyledTextCtrl().

Set the last x chosen value to be the caret x position.

-spec clear(This) -> ok when This :: wxStyledTextCtrl().

Clear the selection.

-spec clearAll(This) -> ok when This :: wxStyledTextCtrl().

Delete all text in the document.

Link to this function

clearDocumentStyle(This)

View Source
-spec clearDocumentStyle(This) -> ok when This :: wxStyledTextCtrl().

Set all style bytes to 0, remove all folding information.

Link to this function

clearRegisteredImages(This)

View Source
-spec clearRegisteredImages(This) -> ok when This :: wxStyledTextCtrl().

Clear all the registered images.

Link to this function

cmdKeyAssign(This, Key, Modifiers, Cmd)

View Source
-spec cmdKeyAssign(This, Key, Modifiers, Cmd) -> ok
                when
                    This :: wxStyledTextCtrl(),
                    Key :: integer(),
                    Modifiers :: integer(),
                    Cmd :: integer().

When key+modifier combination keyDefinition is pressed perform sciCommand.

The second argument should be a bit list containing one or more of the ?wxSTCKEYMOD constants and the third argument should be one of the ?wxSTCCMD constants.

Link to this function

cmdKeyClear(This, Key, Modifiers)

View Source
-spec cmdKeyClear(This, Key, Modifiers) -> ok
               when This :: wxStyledTextCtrl(), Key :: integer(), Modifiers :: integer().

When key+modifier combination keyDefinition is pressed do nothing.

The second argument should be a bit list containing one or more of the ?wxSTCKEYMOD* constants.

-spec cmdKeyClearAll(This) -> ok when This :: wxStyledTextCtrl().

Drop all key mappings.

Link to this function

cmdKeyExecute(This, Cmd)

View Source
-spec cmdKeyExecute(This, Cmd) -> ok when This :: wxStyledTextCtrl(), Cmd :: integer().

Perform one of the operations defined by the wxSTCCMD* constants.

Link to this function

colourise(This, Start, End)

View Source
-spec colourise(This, Start, End) -> ok
             when This :: wxStyledTextCtrl(), Start :: integer(), End :: integer().

Colourise a segment of the document using the current lexing language.

Link to this function

convertEOLs(This, EolMode)

View Source
-spec convertEOLs(This, EolMode) -> ok when This :: wxStyledTextCtrl(), EolMode :: integer().

Convert all line endings in the document to one mode.

-spec copy(This) -> ok when This :: wxStyledTextCtrl().

Copy the selection to the clipboard.

Link to this function

copyRange(This, Start, End)

View Source
-spec copyRange(This, Start, End) -> ok
             when This :: wxStyledTextCtrl(), Start :: integer(), End :: integer().

Copy a range of text to the clipboard.

Positions are clipped into the document.

Link to this function

copyText(This, Length, Text)

View Source
-spec copyText(This, Length, Text) -> ok
            when This :: wxStyledTextCtrl(), Length :: integer(), Text :: unicode:chardata().

Copy argument text to the clipboard.

-spec create(This, Parent) -> boolean() when This :: wxStyledTextCtrl(), Parent :: wxWindow:wxWindow().
-spec create(This, Parent, [Option]) -> boolean()
          when
              This :: wxStyledTextCtrl(),
              Parent :: wxWindow:wxWindow(),
              Option ::
                  {id, integer()} |
                  {pos, {X :: integer(), Y :: integer()}} |
                  {size, {W :: integer(), H :: integer()}} |
                  {style, integer()}.

Create the UI elements for a STC that was created with the default ctor.

(For 2-phase create.)

-spec cut(This) -> ok when This :: wxStyledTextCtrl().

Cut the selection to the clipboard.

-spec deleteBack(This) -> ok when This :: wxStyledTextCtrl().

Delete the selection or if no selection, the character before the caret.

-spec deleteBackNotLine(This) -> ok when This :: wxStyledTextCtrl().

Delete the selection or if no selection, the character before the caret.

Will not delete the character before at the start of a line.

-spec delLineLeft(This) -> ok when This :: wxStyledTextCtrl().

Delete back from the current position to the start of the line.

-spec delLineRight(This) -> ok when This :: wxStyledTextCtrl().

Delete forwards from the current position to the end of the line.

-spec delWordLeft(This) -> ok when This :: wxStyledTextCtrl().

Delete the word to the left of the caret.

-spec delWordRight(This) -> ok when This :: wxStyledTextCtrl().

Delete the word to the right of the caret.

-spec destroy(This :: wxStyledTextCtrl()) -> ok.

Destructor.

Link to this function

docLineFromVisible(This, DisplayLine)

View Source
-spec docLineFromVisible(This, DisplayLine) -> integer()
                      when This :: wxStyledTextCtrl(), DisplayLine :: integer().

Find the document line of a display line taking hidden lines into account.

-spec documentEnd(This) -> ok when This :: wxStyledTextCtrl().

Move caret to last position in document.

-spec documentEndExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret to last position in document extending selection to new caret position.

-spec documentStart(This) -> ok when This :: wxStyledTextCtrl().

Move caret to first position in document.

Link to this function

documentStartExtend(This)

View Source
-spec documentStartExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret to first position in document extending selection to new caret position.

Link to this function

doDragOver(This, X, Y, DefaultRes)

View Source
-spec doDragOver(This, X, Y, DefaultRes) -> wx:wx_enum()
              when
                  This :: wxStyledTextCtrl(),
                  X :: integer(),
                  Y :: integer(),
                  DefaultRes :: wx:wx_enum().

Allow for simulating a DnD DragOver.

Link to this function

doDropText(This, X, Y, Data)

View Source
-spec doDropText(This, X, Y, Data) -> boolean()
              when
                  This :: wxStyledTextCtrl(),
                  X :: integer(),
                  Y :: integer(),
                  Data :: unicode:chardata().

Allow for simulating a DnD DropText.

Link to this function

editToggleOvertype(This)

View Source
-spec editToggleOvertype(This) -> ok when This :: wxStyledTextCtrl().

Switch from insert to overtype mode or the reverse.

-spec emptyUndoBuffer(This) -> ok when This :: wxStyledTextCtrl().

Delete the undo history.

-spec endUndoAction(This) -> ok when This :: wxStyledTextCtrl().

End a sequence of actions that is undone and redone as a unit.

Link to this function

ensureCaretVisible(This)

View Source
-spec ensureCaretVisible(This) -> ok when This :: wxStyledTextCtrl().

Ensure the caret is visible.

Link to this function

ensureVisible(This, Line)

View Source
-spec ensureVisible(This, Line) -> ok when This :: wxStyledTextCtrl(), Line :: integer().

Ensure a particular line is visible by expanding any header line hiding it.

Link to this function

ensureVisibleEnforcePolicy(This, Line)

View Source
-spec ensureVisibleEnforcePolicy(This, Line) -> ok when This :: wxStyledTextCtrl(), Line :: integer().

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.

Link to this function

findColumn(This, Line, Column)

View Source
-spec findColumn(This, Line, Column) -> integer()
              when This :: wxStyledTextCtrl(), Line :: integer(), Column :: integer().

Find the position of a column on a line taking into account tabs and multi-byte characters.

If beyond end of line, return line end position.

Link to this function

findText(This, MinPos, MaxPos, Text)

View Source
-spec findText(This, MinPos, MaxPos, Text) -> integer()
            when
                This :: wxStyledTextCtrl(),
                MinPos :: integer(),
                MaxPos :: integer(),
                Text :: unicode:chardata().
-spec findText(This, MinPos, MaxPos, Text, [Option]) -> integer()
            when
                This :: wxStyledTextCtrl(),
                MinPos :: integer(),
                MaxPos :: integer(),
                Text :: unicode:chardata(),
                Option :: {flags, integer()}.

Find some text in the document. @param minPos The position (starting from zero) in the document at which to begin the search @param maxPos The last position (starting from zero) in the document to which the search will be restricted. @param text The text to search for. @param flags (Optional) The search flags. This should be a bit list containing one or more of the @link wxStyledTextCtrl::wxSTC_FIND_WHOLEWORD wxSTC_FIND_* @endlink constants.

Return: The position (starting from zero) in the document at which the text was found or wxSTC_INVALID_POSITION if the search fails.

Remark: A backwards search can be performed by setting minPos to be greater than maxPos.

Link to this function

formatRange(This, DoDraw, StartPos, EndPos, Draw, Target, RenderRect, PageRect)

View Source
-spec formatRange(This, DoDraw, StartPos, EndPos, Draw, Target, RenderRect, PageRect) -> integer()
               when
                   This :: wxStyledTextCtrl(),
                   DoDraw :: boolean(),
                   StartPos :: integer(),
                   EndPos :: integer(),
                   Draw :: wxDC:wxDC(),
                   Target :: wxDC:wxDC(),
                   RenderRect :: {X :: integer(), Y :: integer(), W :: integer(), H :: integer()},
                   PageRect :: {X :: integer(), Y :: integer(), W :: integer(), H :: integer()}.

On Windows, will draw the document into a display context such as a printer.

-spec formFeed(This) -> ok when This :: wxStyledTextCtrl().

Insert a Form Feed character.

-spec getAnchor(This) -> integer() when This :: wxStyledTextCtrl().

Returns the position of the opposite end of the selection to the caret.

Link to this function

getBackSpaceUnIndents(This)

View Source
-spec getBackSpaceUnIndents(This) -> boolean() when This :: wxStyledTextCtrl().

Does a backspace pressed when caret is within indentation unindent?

-spec getBufferedDraw(This) -> boolean() when This :: wxStyledTextCtrl().

Is drawing done first into a buffer or direct to the screen?

Link to this function

getCaretForeground(This)

View Source
-spec getCaretForeground(This) -> wx:wx_colour4() when This :: wxStyledTextCtrl().

Get the foreground colour of the caret.

Link to this function

getCaretLineBackAlpha(This)

View Source
-spec getCaretLineBackAlpha(This) -> integer() when This :: wxStyledTextCtrl().

Get the background alpha of the caret line.

Link to this function

getCaretLineBackground(This)

View Source
-spec getCaretLineBackground(This) -> wx:wx_colour4() when This :: wxStyledTextCtrl().

Get the colour of the background of the line containing the caret.

Link to this function

getCaretLineVisible(This)

View Source
-spec getCaretLineVisible(This) -> boolean() when This :: wxStyledTextCtrl().

Is the background of the line containing the caret in a different colour?

-spec getCaretPeriod(This) -> integer() when This :: wxStyledTextCtrl().

Get the time in milliseconds that the caret is on and off.

-spec getCaretSticky(This) -> integer() when This :: wxStyledTextCtrl().

Can the caret preferred x position only be changed by explicit movement commands?

The return value will be one of the ?wxSTCCARETSTICKY* constants.

-spec getCaretWidth(This) -> integer() when This :: wxStyledTextCtrl().

Returns the width of the insert mode caret.

-spec getCharAt(This, Pos) -> integer() when This :: wxStyledTextCtrl(), Pos :: integer().

Returns the character byte at the position.

-spec getCodePage(This) -> integer() when This :: wxStyledTextCtrl().

Get the code page used to interpret the bytes of the document as characters.

-spec getColumn(This, Pos) -> integer() when This :: wxStyledTextCtrl(), Pos :: integer().

Retrieve the column number of a position, taking tab width into account.

Link to this function

getControlCharSymbol(This)

View Source
-spec getControlCharSymbol(This) -> integer() when This :: wxStyledTextCtrl().

Get the way control characters are displayed.

-spec getCurLine(This) -> Result
              when
                  Result :: {Res :: unicode:charlist(), LinePos :: integer()},
                  This :: wxStyledTextCtrl().

Retrieve the text of the line containing the caret.

linePos can optionally be passed in to receive the index of the caret on the line.

-spec getCurLineRaw(This) -> Result
                 when
                     Result :: {Res :: binary(), LinePos :: integer()}, This :: wxStyledTextCtrl().

Retrieve the text of the line containing the caret.

Returns the index of the caret on the line.

-spec getCurrentLine(This) -> integer() when This :: wxStyledTextCtrl().

Returns the line number of the line with the caret.

-spec getCurrentPos(This) -> integer() when This :: wxStyledTextCtrl().

Returns the position of the caret.

-spec getEdgeColour(This) -> wx:wx_colour4() when This :: wxStyledTextCtrl().

Retrieve the colour used in edge indication.

-spec getEdgeColumn(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve the column number which text should be kept within.

-spec getEdgeMode(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve the edge highlight mode.

The return value will be one of the ?wxSTCEDGE* constants.

-spec getEndAtLastLine(This) -> boolean() when This :: wxStyledTextCtrl().

Retrieve whether the maximum scroll position has the last line at the bottom of the view.

-spec getEndStyled(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve the position of the last correctly styled character.

-spec getEOLMode(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve the current end of line mode - one of wxSTC_EOL_CRLF, wxSTC_EOL_CR, or wxSTC_EOL_LF.

Link to this function

getFirstVisibleLine(This)

View Source
-spec getFirstVisibleLine(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve the display line at the top of the display.

Link to this function

getFoldExpanded(This, Line)

View Source
-spec getFoldExpanded(This, Line) -> boolean() when This :: wxStyledTextCtrl(), Line :: integer().

Is a header line expanded?

Link to this function

getFoldLevel(This, Line)

View Source
-spec getFoldLevel(This, Line) -> integer() when This :: wxStyledTextCtrl(), Line :: integer().

Retrieve the fold level of a line.

Link to this function

getFoldParent(This, Line)

View Source
-spec getFoldParent(This, Line) -> integer() when This :: wxStyledTextCtrl(), Line :: integer().

Find the parent line of a child line.

-spec getHighlightGuide(This) -> integer() when This :: wxStyledTextCtrl().

Get the highlighted indentation guide column.

-spec getIndent(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve indentation size.

Link to this function

getIndentationGuides(This)

View Source
-spec getIndentationGuides(This) -> integer() when This :: wxStyledTextCtrl().

Are the indentation guides visible?

The return value will be one of the ?wxSTCIV* constants.

Link to this function

getLastChild(This, Line, Level)

View Source
-spec getLastChild(This, Line, Level) -> integer()
                when This :: wxStyledTextCtrl(), Line :: integer(), Level :: integer().

Find the last child line of a header line.

Link to this function

getLastKeydownProcessed(This)

View Source
-spec getLastKeydownProcessed(This) -> boolean() when This :: wxStyledTextCtrl().

Can be used to prevent the EVT_CHAR handler from adding the char.

-spec getLayoutCache(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve the degree of caching of layout information.

The return value will be one of the ?wxSTCCACHE* constants.

-spec getLength(This) -> integer() when This :: wxStyledTextCtrl().

Returns the number of bytes in the document.

-spec getLexer(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve the lexing language of the document.

The return value will be one of the ?wxSTCLEX* constants.

-spec getLine(This, Line) -> unicode:charlist() when This :: wxStyledTextCtrl(), Line :: integer().

Retrieve the contents of a line.

-spec getLineCount(This) -> integer() when This :: wxStyledTextCtrl().

Returns the number of lines in the document.

There is always at least one.

Link to this function

getLineEndPosition(This, Line)

View Source
-spec getLineEndPosition(This, Line) -> integer() when This :: wxStyledTextCtrl(), Line :: integer().

Get the position after the last visible characters on a line.

Link to this function

getLineIndentation(This, Line)

View Source
-spec getLineIndentation(This, Line) -> integer() when This :: wxStyledTextCtrl(), Line :: integer().

Retrieve the number of columns that a line is indented.

Link to this function

getLineIndentPosition(This, Line)

View Source
-spec getLineIndentPosition(This, Line) -> integer() when This :: wxStyledTextCtrl(), Line :: integer().

Retrieve the position before the first non indentation character on a line.

-spec getLineRaw(This, Line) -> binary() when This :: wxStyledTextCtrl(), Line :: integer().

Retrieve the contents of a line.

Link to this function

getLineState(This, Line)

View Source
-spec getLineState(This, Line) -> integer() when This :: wxStyledTextCtrl(), Line :: integer().

Retrieve the extra styling information for a line.

Link to this function

getLineVisible(This, Line)

View Source
-spec getLineVisible(This, Line) -> boolean() when This :: wxStyledTextCtrl(), Line :: integer().

Is a line visible?

-spec getMarginLeft(This) -> integer() when This :: wxStyledTextCtrl().

Returns the size in pixels of the left margin.

Link to this function

getMarginMask(This, Margin)

View Source
-spec getMarginMask(This, Margin) -> integer() when This :: wxStyledTextCtrl(), Margin :: integer().

Retrieve the marker mask of a margin.

-spec getMarginRight(This) -> integer() when This :: wxStyledTextCtrl().

Returns the size in pixels of the right margin.

Link to this function

getMarginSensitive(This, Margin)

View Source
-spec getMarginSensitive(This, Margin) -> boolean() when This :: wxStyledTextCtrl(), Margin :: integer().

Retrieve the mouse click sensitivity of a margin.

Link to this function

getMarginType(This, Margin)

View Source
-spec getMarginType(This, Margin) -> integer() when This :: wxStyledTextCtrl(), Margin :: integer().

Retrieve the type of a margin.

The return value will be one of the ?wxSTCMARGIN* constants.

Link to this function

getMarginWidth(This, Margin)

View Source
-spec getMarginWidth(This, Margin) -> integer() when This :: wxStyledTextCtrl(), Margin :: integer().

Retrieve the width of a margin in pixels.

-spec getMaxLineState(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve the last line number that has line state.

-spec getModEventMask(This) -> integer() when This :: wxStyledTextCtrl().

Get which document modification events are sent to the container.

The return value will wxSTCMODEVENTMASKALL if all changes generate events. Otherwise it will be a bit list containing one or more of the ?wxSTC_MOD constants, the ?wxSTCPERFORMED constants, wxSTC_STARTACTION, wxSTC_MULTILINEUNDOREDO, wxSTC_MULTISTEPUNDOREDO, and wxSTC_LASTSTEPINUNDOREDO.

-spec getModify(This) -> boolean() when This :: wxStyledTextCtrl().

Is the document different from when it was last saved?

Link to this function

getMouseDownCaptures(This)

View Source
-spec getMouseDownCaptures(This) -> boolean() when This :: wxStyledTextCtrl().

Get whether mouse gets captured.

-spec getMouseDwellTime(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve the time the mouse must sit still to generate a mouse dwell event.

The return value will be a time in milliseconds or wxSTC_TIME_FOREVER.

-spec getOvertype(This) -> boolean() when This :: wxStyledTextCtrl().

Returns true if overtype mode is active otherwise false is returned.

Link to this function

getPasteConvertEndings(This)

View Source
-spec getPasteConvertEndings(This) -> boolean() when This :: wxStyledTextCtrl().

Get convert-on-paste setting.

Link to this function

getPrintColourMode(This)

View Source
-spec getPrintColourMode(This) -> integer() when This :: wxStyledTextCtrl().

Returns the print colour mode.

The return value will be one of the ?wxSTCPRINT* constants.

Link to this function

getPrintMagnification(This)

View Source
-spec getPrintMagnification(This) -> integer() when This :: wxStyledTextCtrl().

Returns the print magnification.

-spec getPrintWrapMode(This) -> integer() when This :: wxStyledTextCtrl().

Is printing line wrapped?

The return value will be one of the ?wxSTCWRAP* constants.

-spec getProperty(This, Key) -> unicode:charlist()
               when This :: wxStyledTextCtrl(), Key :: unicode:chardata().

Retrieve a "property" value previously set with SetProperty.

-spec getReadOnly(This) -> boolean() when This :: wxStyledTextCtrl().

In read-only mode?

-spec getScrollWidth(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve the document width assumed for scrolling.

-spec getSearchFlags(This) -> integer() when This :: wxStyledTextCtrl().

Get the search flags used by SearchInTarget.

The return value will be a bit list containing one or more of the ?wxSTCFIND* constants.

-spec getSelAlpha(This) -> integer() when This :: wxStyledTextCtrl().

Get the alpha of the selection.

-spec getSelectedText(This) -> unicode:charlist() when This :: wxStyledTextCtrl().

Retrieve the selected text.

Link to this function

getSelectedTextRaw(This)

View Source
-spec getSelectedTextRaw(This) -> binary() when This :: wxStyledTextCtrl().

Retrieve the selected text.

-spec getSelection(This) -> {From :: integer(), To :: integer()} when This :: wxStyledTextCtrl().

Gets the current selection span.

If the returned values are equal, there was no selection. Please note that the indices returned may be used with the other wxTextCtrl methods but don't necessarily represent the correct indices into the string returned by wxComboBox:getValue/1 for multiline controls under Windows (at least,) you should use wxTextCtrl:getStringSelection/1 to get the selected text.

-spec getSelectionEnd(This) -> integer() when This :: wxStyledTextCtrl().

Returns the position at the end of the selection.

-spec getSelectionMode(This) -> integer() when This :: wxStyledTextCtrl().

Get the mode of the current selection.

The return value will be one of the ?wxSTCSEL* constants.

-spec getSelectionStart(This) -> integer() when This :: wxStyledTextCtrl().

Returns the position at the start of the selection.

-spec getSTCCursor(This) -> integer() when This :: wxStyledTextCtrl().

Get cursor type.

The return value will be one of the ?wxSTC_CURSOR* constants.

-spec getSTCFocus(This) -> boolean() when This :: wxStyledTextCtrl().

Get internal focus flag.

-spec getStatus(This) -> integer() when This :: wxStyledTextCtrl().

Get error status.

The return value will be one of the ?wxSTCSTATUS* constants.

-spec getStyleAt(This, Pos) -> integer() when This :: wxStyledTextCtrl(), Pos :: integer().

Returns the style byte at the position.

-spec getStyleBits(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve number of bits in style bytes used to hold the lexical state.

Deprecated:

Link to this function

getStyleBitsNeeded(This)

View Source
-spec getStyleBitsNeeded(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve the number of bits the current lexer needs for styling.

Deprecated:

-spec getTabIndents(This) -> boolean() when This :: wxStyledTextCtrl().

Does a tab pressed when caret is within indentation indent?

-spec getTabWidth(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve the visible size of a tab.

-spec getTargetEnd(This) -> integer() when This :: wxStyledTextCtrl().

Get the position that ends the target.

-spec getTargetStart(This) -> integer() when This :: wxStyledTextCtrl().

Get the position that starts the target.

-spec getText(This) -> unicode:charlist() when This :: wxStyledTextCtrl().

Retrieve all the text in the document.

-spec getTextLength(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve the number of characters in the document.

Link to this function

getTextRange(This, StartPos, EndPos)

View Source
-spec getTextRange(This, StartPos, EndPos) -> unicode:charlist()
                when This :: wxStyledTextCtrl(), StartPos :: integer(), EndPos :: integer().

Retrieve a range of text.

Link to this function

getTextRangeRaw(This, StartPos, EndPos)

View Source
-spec getTextRangeRaw(This, StartPos, EndPos) -> binary()
                   when This :: wxStyledTextCtrl(), StartPos :: integer(), EndPos :: integer().

Retrieve a range of text.

-spec getTextRaw(This) -> binary() when This :: wxStyledTextCtrl().

Retrieve all the text in the document.

-spec getTwoPhaseDraw(This) -> boolean() when This :: wxStyledTextCtrl().

Is drawing done in two phases with backgrounds drawn before foregrounds?

-spec getUndoCollection(This) -> boolean() when This :: wxStyledTextCtrl().

Is undo history being collected?

Link to this function

getUseAntiAliasing(This)

View Source
-spec getUseAntiAliasing(This) -> boolean() when This :: wxStyledTextCtrl().

Returns the current UseAntiAliasing setting.

Link to this function

getUseHorizontalScrollBar(This)

View Source
-spec getUseHorizontalScrollBar(This) -> boolean() when This :: wxStyledTextCtrl().

Is the horizontal scroll bar visible?

-spec getUseTabs(This) -> boolean() when This :: wxStyledTextCtrl().

Retrieve whether tabs will be used in indentation.

Link to this function

getUseVerticalScrollBar(This)

View Source
-spec getUseVerticalScrollBar(This) -> boolean() when This :: wxStyledTextCtrl().

Is the vertical scroll bar visible?

-spec getViewEOL(This) -> boolean() when This :: wxStyledTextCtrl().

Are the end of line characters visible?

-spec getViewWhiteSpace(This) -> integer() when This :: wxStyledTextCtrl().

Are white space characters currently visible? Returns one of wxSTCWS* constants.

-spec getWrapMode(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve whether text is word wrapped.

The return value will be one of the ?wxSTCWRAP* constants.

Link to this function

getWrapStartIndent(This)

View Source
-spec getWrapStartIndent(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve the start indent for wrapped lines.

Link to this function

getWrapVisualFlags(This)

View Source
-spec getWrapVisualFlags(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve the display mode of visual flags for wrapped lines.

The return value will be a bit list containing one or more of the ?wxSTCWRAPVISUALFLAG* constants.

Link to this function

getWrapVisualFlagsLocation(This)

View Source
-spec getWrapVisualFlagsLocation(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve the location of visual flags for wrapped lines.

The return value will be a bit list containing one or more of the ?wxSTCWRAPVISUALFLAGLOC* constants.

-spec getXOffset(This) -> integer() when This :: wxStyledTextCtrl().

Get the xOffset (ie, horizontal scroll position).

-spec getZoom(This) -> integer() when This :: wxStyledTextCtrl().

Retrieve the zoom level.

-spec gotoLine(This, Line) -> ok when This :: wxStyledTextCtrl(), Line :: integer().

Set caret to start of a line and ensure it is visible.

-spec gotoPos(This, Caret) -> ok when This :: wxStyledTextCtrl(), Caret :: integer().

Set caret to a position and ensure it is visible.

Link to this function

hideLines(This, LineStart, LineEnd)

View Source
-spec hideLines(This, LineStart, LineEnd) -> ok
             when This :: wxStyledTextCtrl(), LineStart :: integer(), LineEnd :: integer().

Make a range of lines invisible.

Link to this function

hideSelection(This, Hide)

View Source
-spec hideSelection(This, Hide) -> ok when This :: wxStyledTextCtrl(), Hide :: boolean().

Draw the selection in normal style or with selection highlighted.

-spec home(This) -> ok when This :: wxStyledTextCtrl().

Move caret to first position on line.

-spec homeDisplay(This) -> ok when This :: wxStyledTextCtrl().

Move caret to first position on display line.

-spec homeDisplayExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret to first position on display line extending selection to new caret position.

-spec homeExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret to first position on line extending selection to new caret position.

-spec homeRectExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret to first position on line, extending rectangular selection to new caret position.

-spec homeWrapExtend(This) -> ok when This :: wxStyledTextCtrl().

Like HomeExtend but when word-wrap is enabled extends first to start of display line HomeDisplayExtend, then to start of document line HomeExtend.

Link to this function

indicatorGetForeground(This, Indicator)

View Source
-spec indicatorGetForeground(This, Indicator) -> wx:wx_colour4()
                          when This :: wxStyledTextCtrl(), Indicator :: integer().

Retrieve the foreground colour of an indicator.

Link to this function

indicatorGetStyle(This, Indicator)

View Source
-spec indicatorGetStyle(This, Indicator) -> integer()
                     when This :: wxStyledTextCtrl(), Indicator :: integer().

Retrieve the style of an indicator.

The return value will be one of the ?wxSTCINDIC* constants.

Link to this function

indicatorSetForeground(This, Indicator, Fore)

View Source
-spec indicatorSetForeground(This, Indicator, Fore) -> ok
                          when
                              This :: wxStyledTextCtrl(),
                              Indicator :: integer(),
                              Fore :: wx:wx_colour().

Set the foreground colour of an indicator.

Link to this function

indicatorSetStyle(This, Indicator, IndicatorStyle)

View Source
-spec indicatorSetStyle(This, Indicator, IndicatorStyle) -> ok
                     when
                         This :: wxStyledTextCtrl(),
                         Indicator :: integer(),
                         IndicatorStyle :: integer().

Set an indicator to plain, squiggle or TT.

The second argument should be one of the ?wxSTCINDIC* constants.

Link to this function

insertText(This, Pos, Text)

View Source
-spec insertText(This, Pos, Text) -> ok
              when This :: wxStyledTextCtrl(), Pos :: integer(), Text :: unicode:chardata().

Insert string at a position.

Link to this function

insertTextRaw(This, Pos, Text)

View Source
-spec insertTextRaw(This, Pos, Text) -> ok
                 when This :: wxStyledTextCtrl(), Pos :: integer(), Text :: binary().

Insert string at a position.

-spec lineCopy(This) -> ok when This :: wxStyledTextCtrl().

Copy the line containing the caret.

-spec lineCut(This) -> ok when This :: wxStyledTextCtrl().

Cut the line containing the caret.

-spec lineDelete(This) -> ok when This :: wxStyledTextCtrl().

Delete the line containing the caret.

-spec lineDown(This) -> ok when This :: wxStyledTextCtrl().

Move caret down one line.

-spec lineDownExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret down one line extending selection to new caret position.

Link to this function

lineDownRectExtend(This)

View Source
-spec lineDownRectExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret down one line, extending rectangular selection to new caret position.

-spec lineDuplicate(This) -> ok when This :: wxStyledTextCtrl().

Duplicate the current line.

-spec lineEnd(This) -> ok when This :: wxStyledTextCtrl().

Move caret to last position on line.

-spec lineEndDisplay(This) -> ok when This :: wxStyledTextCtrl().

Move caret to last position on display line.

Link to this function

lineEndDisplayExtend(This)

View Source
-spec lineEndDisplayExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret to last position on display line extending selection to new caret position.

-spec lineEndExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret to last position on line extending selection to new caret position.

-spec lineEndRectExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret to last position on line, extending rectangular selection to new caret position.

-spec lineEndWrap(This) -> ok when This :: wxStyledTextCtrl().

Like LineEnd but when word-wrap is enabled goes first to end of display line LineEndDisplay, then to start of document line LineEnd.

-spec lineEndWrapExtend(This) -> ok when This :: wxStyledTextCtrl().

Like LineEndExtend but when word-wrap is enabled extends first to end of display line LineEndDisplayExtend, then to start of document line LineEndExtend.

Link to this function

lineFromPosition(This, Pos)

View Source
-spec lineFromPosition(This, Pos) -> integer() when This :: wxStyledTextCtrl(), Pos :: integer().

Retrieve the line containing a position.

-spec lineLength(This, Line) -> integer() when This :: wxStyledTextCtrl(), Line :: integer().

How many characters are on a line, including end of line characters?

Link to this function

lineScroll(This, Columns, Lines)

View Source
-spec lineScroll(This, Columns, Lines) -> ok
              when This :: wxStyledTextCtrl(), Columns :: integer(), Lines :: integer().

Scroll horizontally and vertically.

-spec lineScrollDown(This) -> ok when This :: wxStyledTextCtrl().

Scroll the document down, keeping the caret visible.

-spec lineScrollUp(This) -> ok when This :: wxStyledTextCtrl().

Scroll the document up, keeping the caret visible.

-spec linesJoin(This) -> ok when This :: wxStyledTextCtrl().

Join the lines in the target.

-spec linesOnScreen(This) -> integer() when This :: wxStyledTextCtrl().

Retrieves the number of lines completely visible.

Link to this function

linesSplit(This, PixelWidth)

View Source
-spec linesSplit(This, PixelWidth) -> ok when This :: wxStyledTextCtrl(), PixelWidth :: integer().

Split the lines in the target into lines that are less wide than pixelWidth where possible.

-spec lineTranspose(This) -> ok when This :: wxStyledTextCtrl().

Switch the current line with the previous.

-spec lineUp(This) -> ok when This :: wxStyledTextCtrl().

Move caret up one line.

-spec lineUpExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret up one line extending selection to new caret position.

-spec lineUpRectExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret up one line, extending rectangular selection to new caret position.

Link to this function

loadFile(This, Filename)

View Source
-spec loadFile(This, Filename) -> boolean()
            when This :: wxStyledTextCtrl(), Filename :: unicode:chardata().

Load the contents of filename into the editor.

-spec lowerCase(This) -> ok when This :: wxStyledTextCtrl().

Transform the selection to lower case.

Link to this function

markerAdd(This, Line, MarkerNumber)

View Source
-spec markerAdd(This, Line, MarkerNumber) -> integer()
             when This :: wxStyledTextCtrl(), Line :: integer(), MarkerNumber :: integer().

Add a marker to a line, returning an ID which can be used to find or delete the marker.

Link to this function

markerAddSet(This, Line, MarkerSet)

View Source
-spec markerAddSet(This, Line, MarkerSet) -> ok
                when This :: wxStyledTextCtrl(), Line :: integer(), MarkerSet :: integer().

Add a set of markers to a line.

Link to this function

markerDefine(This, MarkerNumber, MarkerSymbol)

View Source
-spec markerDefine(This, MarkerNumber, MarkerSymbol) -> ok
                when
                    This :: wxStyledTextCtrl(),
                    MarkerNumber :: integer(),
                    MarkerSymbol :: integer().
-spec markerDefine(This, MarkerNumber, MarkerSymbol, [Option]) -> ok
                when
                    This :: wxStyledTextCtrl(),
                    MarkerNumber :: integer(),
                    MarkerSymbol :: integer(),
                    Option :: {foreground, wx:wx_colour()} | {background, wx:wx_colour()}.

Set the symbol used for a particular marker number, and optionally the fore and background colours.

The second argument should be one of the ?wxSTCMARK* constants.

Link to this function

markerDefineBitmap(This, MarkerNumber, Bmp)

View Source
-spec markerDefineBitmap(This, MarkerNumber, Bmp) -> ok
                      when
                          This :: wxStyledTextCtrl(),
                          MarkerNumber :: integer(),
                          Bmp :: wxBitmap:wxBitmap().

Define a marker with a wxBitmap.

Link to this function

markerDelete(This, Line, MarkerNumber)

View Source
-spec markerDelete(This, Line, MarkerNumber) -> ok
                when This :: wxStyledTextCtrl(), Line :: integer(), MarkerNumber :: integer().

Delete a marker from a line.

Link to this function

markerDeleteAll(This, MarkerNumber)

View Source
-spec markerDeleteAll(This, MarkerNumber) -> ok
                   when This :: wxStyledTextCtrl(), MarkerNumber :: integer().

Delete all markers with a particular number from all lines.

Link to this function

markerDeleteHandle(This, MarkerHandle)

View Source
-spec markerDeleteHandle(This, MarkerHandle) -> ok
                      when This :: wxStyledTextCtrl(), MarkerHandle :: integer().

Delete a marker.

-spec markerGet(This, Line) -> integer() when This :: wxStyledTextCtrl(), Line :: integer().

Get a bit mask of all the markers set on a line.

Link to this function

markerLineFromHandle(This, MarkerHandle)

View Source
-spec markerLineFromHandle(This, MarkerHandle) -> integer()
                        when This :: wxStyledTextCtrl(), MarkerHandle :: integer().

Retrieve the line number at which a particular marker is located.

Link to this function

markerNext(This, LineStart, MarkerMask)

View Source
-spec markerNext(This, LineStart, MarkerMask) -> integer()
              when This :: wxStyledTextCtrl(), LineStart :: integer(), MarkerMask :: integer().

Find the next line at or after lineStart that includes a marker in mask.

Return -1 when no more lines.

Link to this function

markerPrevious(This, LineStart, MarkerMask)

View Source
-spec markerPrevious(This, LineStart, MarkerMask) -> integer()
                  when This :: wxStyledTextCtrl(), LineStart :: integer(), MarkerMask :: integer().

Find the previous line before lineStart that includes a marker in mask.

Link to this function

markerSetAlpha(This, MarkerNumber, Alpha)

View Source
-spec markerSetAlpha(This, MarkerNumber, Alpha) -> ok
                  when This :: wxStyledTextCtrl(), MarkerNumber :: integer(), Alpha :: integer().

Set the alpha used for a marker that is drawn in the text area, not the margin.

Link to this function

markerSetBackground(This, MarkerNumber, Back)

View Source
-spec markerSetBackground(This, MarkerNumber, Back) -> ok
                       when
                           This :: wxStyledTextCtrl(),
                           MarkerNumber :: integer(),
                           Back :: wx:wx_colour().

Set the background colour used for a particular marker number.

Link to this function

markerSetForeground(This, MarkerNumber, Fore)

View Source
-spec markerSetForeground(This, MarkerNumber, Fore) -> ok
                       when
                           This :: wxStyledTextCtrl(),
                           MarkerNumber :: integer(),
                           Fore :: wx:wx_colour().

Set the foreground colour used for a particular marker number.

Link to this function

moveCaretInsideView(This)

View Source
-spec moveCaretInsideView(This) -> ok when This :: wxStyledTextCtrl().

Move the caret inside current view if it's not there already.

-spec new() -> wxStyledTextCtrl().

Default ctor.

-spec new(Parent) -> wxStyledTextCtrl() when Parent :: wxWindow:wxWindow().
-spec new(Parent, [Option]) -> wxStyledTextCtrl()
       when
           Parent :: wxWindow:wxWindow(),
           Option ::
               {id, integer()} |
               {pos, {X :: integer(), Y :: integer()}} |
               {size, {W :: integer(), H :: integer()}} |
               {style, integer()}.

Ctor.

-spec newLine(This) -> ok when This :: wxStyledTextCtrl().

Insert a new line, may use a CRLF, CR or LF depending on EOL mode.

-spec pageDown(This) -> ok when This :: wxStyledTextCtrl().

Move caret one page down.

-spec pageDownExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret one page down extending selection to new caret position.

Link to this function

pageDownRectExtend(This)

View Source
-spec pageDownRectExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret one page down, extending rectangular selection to new caret position.

-spec pageUp(This) -> ok when This :: wxStyledTextCtrl().

Move caret one page up.

-spec pageUpExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret one page up extending selection to new caret position.

-spec pageUpRectExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret one page up, extending rectangular selection to new caret position.

-spec paraDownExtend(This) -> ok when This :: wxStyledTextCtrl().

Extend selection down one paragraph (delimited by empty lines).

-spec paraUp(This) -> ok when This :: wxStyledTextCtrl().

Move caret up one paragraph (delimited by empty lines).

-spec paraUpExtend(This) -> ok when This :: wxStyledTextCtrl().

Extend selection up one paragraph (delimited by empty lines).

-spec paste(This) -> ok when This :: wxStyledTextCtrl().

Paste the contents of the clipboard into the document replacing the selection.

Link to this function

pointFromPosition(This, Pos)

View Source
-spec pointFromPosition(This, Pos) -> {X :: integer(), Y :: integer()}
                     when This :: wxStyledTextCtrl(), Pos :: integer().

Retrieve the point in the window where a position is displayed.

Link to this function

positionAfter(This, Pos)

View Source
-spec positionAfter(This, Pos) -> integer() when This :: wxStyledTextCtrl(), Pos :: integer().

Given a valid document position, return the next position taking code page into account.

Maximum value returned is the last position in the document.

Link to this function

positionBefore(This, Pos)

View Source
-spec positionBefore(This, Pos) -> integer() when This :: wxStyledTextCtrl(), Pos :: integer().

Given a valid document position, return the previous position taking code page into account.

Returns 0 if passed 0.

Link to this function

positionFromLine(This, Line)

View Source
-spec positionFromLine(This, Line) -> integer() when This :: wxStyledTextCtrl(), Line :: integer().

Retrieve the position at the start of a line.

Link to this function

positionFromPoint(This, Pt)

View Source
-spec positionFromPoint(This, Pt) -> integer()
                     when This :: wxStyledTextCtrl(), Pt :: {X :: integer(), Y :: integer()}.

Find the position from a point within the window.

Link to this function

positionFromPointClose(This, X, Y)

View Source
-spec positionFromPointClose(This, X, Y) -> integer()
                          when This :: wxStyledTextCtrl(), X :: integer(), Y :: integer().

Find the position from a point within the window but return wxSTC_INVALID_POSITION if not close to text.

-spec redo(This) -> ok when This :: wxStyledTextCtrl().

Redoes the next action on the undo history.

Link to this function

registerImage(This, Type, Bmp)

View Source
-spec registerImage(This, Type, Bmp) -> ok
                 when This :: wxStyledTextCtrl(), Type :: integer(), Bmp :: wxBitmap:wxBitmap().

Register an image for use in autocompletion lists.

Link to this function

replaceSelection(This, Text)

View Source
-spec replaceSelection(This, Text) -> ok when This :: wxStyledTextCtrl(), Text :: unicode:chardata().

Replace the selected text with the argument text.

Link to this function

replaceTarget(This, Text)

View Source
-spec replaceTarget(This, Text) -> integer() when This :: wxStyledTextCtrl(), Text :: unicode:chardata().

Replace the target text with the argument text.

Text is counted so it can contain NULs. Returns the length of the replacement text.

Link to this function

saveFile(This, Filename)

View Source
-spec saveFile(This, Filename) -> boolean()
            when This :: wxStyledTextCtrl(), Filename :: unicode:chardata().

Write the contents of the editor to filename.

Link to this function

scrollToColumn(This, Column)

View Source
-spec scrollToColumn(This, Column) -> ok when This :: wxStyledTextCtrl(), Column :: integer().

Scroll enough to make the given column visible.

Link to this function

scrollToLine(This, Line)

View Source
-spec scrollToLine(This, Line) -> ok when This :: wxStyledTextCtrl(), Line :: integer().

Scroll enough to make the given line visible.

-spec searchAnchor(This) -> ok when This :: wxStyledTextCtrl().

Sets the current caret position to be the search anchor.

Link to this function

searchInTarget(This, Text)

View Source
-spec searchInTarget(This, Text) -> integer()
                  when This :: wxStyledTextCtrl(), Text :: unicode:chardata().

Search for a counted string in the target and set the target to the found range.

Text is counted so it can contain NULs. Returns length of range or -1 for failure in which case target is not moved.

Link to this function

searchNext(This, SearchFlags, Text)

View Source
-spec searchNext(This, SearchFlags, Text) -> integer()
              when
                  This :: wxStyledTextCtrl(), SearchFlags :: integer(), Text :: unicode:chardata().

Find some text starting at the search anchor.

Does not ensure the selection is visible.

Link to this function

searchPrev(This, SearchFlags, Text)

View Source
-spec searchPrev(This, SearchFlags, Text) -> integer()
              when
                  This :: wxStyledTextCtrl(), SearchFlags :: integer(), Text :: unicode:chardata().

Find some text starting at the search anchor and moving backwards.

Does not ensure the selection is visible.

-spec selectAll(This) -> ok when This :: wxStyledTextCtrl().

Select all the text in the document.

Link to this function

selectionDuplicate(This)

View Source
-spec selectionDuplicate(This) -> ok when This :: wxStyledTextCtrl().

Duplicate the selection.

If selection empty duplicate the line containing the caret.

Link to this function

selectionIsRectangle(This)

View Source
-spec selectionIsRectangle(This) -> boolean() when This :: wxStyledTextCtrl().

Is the selection rectangular? The alternative is the more common stream selection.

-spec setAnchor(This, Anchor) -> ok when This :: wxStyledTextCtrl(), Anchor :: integer().

Set the selection anchor to a position.

The anchor is the opposite end of the selection from the caret.

Link to this function

setBackSpaceUnIndents(This, BsUnIndents)

View Source
-spec setBackSpaceUnIndents(This, BsUnIndents) -> ok
                         when This :: wxStyledTextCtrl(), BsUnIndents :: boolean().

Sets whether a backspace pressed when caret is within indentation unindents.

Link to this function

setBufferedDraw(This, Buffered)

View Source
-spec setBufferedDraw(This, Buffered) -> ok when This :: wxStyledTextCtrl(), Buffered :: boolean().

If drawing is buffered then each line of text is drawn into a bitmap buffer before drawing it to the screen to avoid flicker.

Link to this function

setCaretForeground(This, Fore)

View Source
-spec setCaretForeground(This, Fore) -> ok when This :: wxStyledTextCtrl(), Fore :: wx:wx_colour().

Set the foreground colour of the caret.

Link to this function

setCaretLineBackAlpha(This, Alpha)

View Source
-spec setCaretLineBackAlpha(This, Alpha) -> ok when This :: wxStyledTextCtrl(), Alpha :: integer().

Set background alpha of the caret line.

Link to this function

setCaretLineBackground(This, Back)

View Source
-spec setCaretLineBackground(This, Back) -> ok when This :: wxStyledTextCtrl(), Back :: wx:wx_colour().

Set the colour of the background of the line containing the caret.

Link to this function

setCaretLineVisible(This, Show)

View Source
-spec setCaretLineVisible(This, Show) -> ok when This :: wxStyledTextCtrl(), Show :: boolean().

Display the background of the line containing the caret in a different colour.

Link to this function

setCaretPeriod(This, PeriodMilliseconds)

View Source
-spec setCaretPeriod(This, PeriodMilliseconds) -> ok
                  when This :: wxStyledTextCtrl(), PeriodMilliseconds :: integer().

Get the time in milliseconds that the caret is on and off.

0 = steady on.

Link to this function

setCaretSticky(This, UseCaretStickyBehaviour)

View Source
-spec setCaretSticky(This, UseCaretStickyBehaviour) -> ok
                  when This :: wxStyledTextCtrl(), UseCaretStickyBehaviour :: integer().

Stop the caret preferred x position changing when the user types.

The input should be one of the ?wxSTCCARETSTICKY* constants.

Link to this function

setCaretWidth(This, PixelWidth)

View Source
-spec setCaretWidth(This, PixelWidth) -> ok when This :: wxStyledTextCtrl(), PixelWidth :: integer().

Set the width of the insert mode caret.

-spec setCharsDefault(This) -> ok when This :: wxStyledTextCtrl().

Reset the set of characters for whitespace and word characters to the defaults.

Link to this function

setCodePage(This, CodePage)

View Source
-spec setCodePage(This, CodePage) -> ok when This :: wxStyledTextCtrl(), CodePage :: integer().

Set the code page used to interpret the bytes of the document as characters.

Link to this function

setControlCharSymbol(This, Symbol)

View Source
-spec setControlCharSymbol(This, Symbol) -> ok when This :: wxStyledTextCtrl(), Symbol :: integer().

Change the way control characters are displayed: If symbol is < 32, keep the drawn way, else, use the given character.

Link to this function

setCurrentPos(This, Caret)

View Source
-spec setCurrentPos(This, Caret) -> ok when This :: wxStyledTextCtrl(), Caret :: integer().

Sets the position of the caret.

Link to this function

setEdgeColour(This, EdgeColour)

View Source
-spec setEdgeColour(This, EdgeColour) -> ok
                 when This :: wxStyledTextCtrl(), EdgeColour :: wx:wx_colour().

Change the colour used in edge indication.

Link to this function

setEdgeColumn(This, Column)

View Source
-spec setEdgeColumn(This, Column) -> ok when This :: wxStyledTextCtrl(), Column :: integer().

Set the column number of the edge.

If text goes past the edge then it is highlighted.

Link to this function

setEdgeMode(This, EdgeMode)

View Source
-spec setEdgeMode(This, EdgeMode) -> ok when This :: wxStyledTextCtrl(), EdgeMode :: integer().

The edge may be displayed by a line (wxSTC_EDGE_LINE/wxSTC_EDGE_MULTILINE) or by highlighting text that goes beyond it (wxSTC_EDGE_BACKGROUND) or not displayed at all (wxSTC_EDGE_NONE).

The input should be one of the ?wxSTCEDGE* constants.

Link to this function

setEOLMode(This, EolMode)

View Source
-spec setEOLMode(This, EolMode) -> ok when This :: wxStyledTextCtrl(), EolMode :: integer().

Set the current end of line mode.

The input should be one of the ?wxSTCEOL* constants.

Link to this function

setFoldExpanded(This, Line, Expanded)

View Source
-spec setFoldExpanded(This, Line, Expanded) -> ok
                   when This :: wxStyledTextCtrl(), Line :: integer(), Expanded :: boolean().

Show the children of a header line.

Link to this function

setFoldFlags(This, Flags)

View Source
-spec setFoldFlags(This, Flags) -> ok when This :: wxStyledTextCtrl(), Flags :: integer().

Set some style options for folding.

The second argument should be a bit list containing one or more of the ?wxSTCFOLDFLAG* constants.

Link to this function

setFoldLevel(This, Line, Level)

View Source
-spec setFoldLevel(This, Line, Level) -> ok
                when This :: wxStyledTextCtrl(), Line :: integer(), Level :: integer().

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.

Link to this function

setFoldMarginColour(This, UseSetting, Back)

View Source
-spec setFoldMarginColour(This, UseSetting, Back) -> ok
                       when
                           This :: wxStyledTextCtrl(),
                           UseSetting :: boolean(),
                           Back :: wx:wx_colour().

Set one of the colours used as a chequerboard pattern in the fold margin.

Link to this function

setFoldMarginHiColour(This, UseSetting, Fore)

View Source
-spec setFoldMarginHiColour(This, UseSetting, Fore) -> ok
                         when
                             This :: wxStyledTextCtrl(),
                             UseSetting :: boolean(),
                             Fore :: wx:wx_colour().

Set the other colour used as a chequerboard pattern in the fold margin.

Link to this function

setHighlightGuide(This, Column)

View Source
-spec setHighlightGuide(This, Column) -> ok when This :: wxStyledTextCtrl(), Column :: integer().

Set the highlighted indentation guide column.

0 = no highlighted guide.

Link to this function

setHotspotActiveBackground(This, UseSetting, Back)

View Source
-spec setHotspotActiveBackground(This, UseSetting, Back) -> ok
                              when
                                  This :: wxStyledTextCtrl(),
                                  UseSetting :: boolean(),
                                  Back :: wx:wx_colour().

Set a back colour for active hotspots.

Link to this function

setHotspotActiveForeground(This, UseSetting, Fore)

View Source
-spec setHotspotActiveForeground(This, UseSetting, Fore) -> ok
                              when
                                  This :: wxStyledTextCtrl(),
                                  UseSetting :: boolean(),
                                  Fore :: wx:wx_colour().

Set a fore colour for active hotspots.

Link to this function

setHotspotActiveUnderline(This, Underline)

View Source
-spec setHotspotActiveUnderline(This, Underline) -> ok
                             when This :: wxStyledTextCtrl(), Underline :: boolean().

Enable / Disable underlining active hotspots.

Link to this function

setHotspotSingleLine(This, SingleLine)

View Source
-spec setHotspotSingleLine(This, SingleLine) -> ok
                        when This :: wxStyledTextCtrl(), SingleLine :: boolean().

Limit hotspots to single line so hotspots on two lines don't merge.

Link to this function

setHScrollBar(This, Bar)

View Source
-spec setHScrollBar(This, Bar) -> ok when This :: wxStyledTextCtrl(), Bar :: wxScrollBar:wxScrollBar().

Set the horizontal scrollbar to use instead of the one that's built-in.

Link to this function

setIndent(This, IndentSize)

View Source
-spec setIndent(This, IndentSize) -> ok when This :: wxStyledTextCtrl(), IndentSize :: integer().

Set the number of spaces used for one level of indentation.

Link to this function

setIndentationGuides(This, IndentView)

View Source
-spec setIndentationGuides(This, IndentView) -> ok
                        when This :: wxStyledTextCtrl(), IndentView :: integer().

Show or hide indentation guides.

The input should be one of the ?wxSTCIV* constants.

Link to this function

setKeyWords(This, KeyWordSet, KeyWords)

View Source
-spec setKeyWords(This, KeyWordSet, KeyWords) -> ok
               when
                   This :: wxStyledTextCtrl(),
                   KeyWordSet :: integer(),
                   KeyWords :: unicode:chardata().

Set up the key words used by the lexer.

Link to this function

setLastKeydownProcessed(This, Val)

View Source
-spec setLastKeydownProcessed(This, Val) -> ok when This :: wxStyledTextCtrl(), Val :: boolean().

Returns the line number of the line with the caret.

Link to this function

setLayoutCache(This, CacheMode)

View Source
-spec setLayoutCache(This, CacheMode) -> ok when This :: wxStyledTextCtrl(), CacheMode :: integer().

Sets the degree of caching of layout information.

The input should be one of the ?wxSTCCACHE* constants.

-spec setLexer(This, Lexer) -> ok when This :: wxStyledTextCtrl(), Lexer :: integer().

Set the lexing language of the document.

The input should be one of the ?wxSTCLEX* constants.

Link to this function

setLexerLanguage(This, Language)

View Source
-spec setLexerLanguage(This, Language) -> ok
                    when This :: wxStyledTextCtrl(), Language :: unicode:chardata().

Set the lexing language of the document based on string name.

Link to this function

setLineIndentation(This, Line, Indentation)

View Source
-spec setLineIndentation(This, Line, Indentation) -> ok
                      when This :: wxStyledTextCtrl(), Line :: integer(), Indentation :: integer().

Change the indentation of a line to a number of columns.

Link to this function

setLineState(This, Line, State)

View Source
-spec setLineState(This, Line, State) -> ok
                when This :: wxStyledTextCtrl(), Line :: integer(), State :: integer().

Used to hold extra styling information for each line.

Link to this function

setMarginLeft(This, PixelWidth)

View Source
-spec setMarginLeft(This, PixelWidth) -> ok when This :: wxStyledTextCtrl(), PixelWidth :: integer().

Sets the size in pixels of the left margin.

Link to this function

setMarginMask(This, Margin, Mask)

View Source
-spec setMarginMask(This, Margin, Mask) -> ok
                 when This :: wxStyledTextCtrl(), Margin :: integer(), Mask :: integer().

Set a mask that determines which markers are displayed in a margin.

Link to this function

setMarginRight(This, PixelWidth)

View Source
-spec setMarginRight(This, PixelWidth) -> ok when This :: wxStyledTextCtrl(), PixelWidth :: integer().

Sets the size in pixels of the right margin.

Link to this function

setMarginSensitive(This, Margin, Sensitive)

View Source
-spec setMarginSensitive(This, Margin, Sensitive) -> ok
                      when This :: wxStyledTextCtrl(), Margin :: integer(), Sensitive :: boolean().

Make a margin sensitive or insensitive to mouse clicks.

Link to this function

setMargins(This, Left, Right)

View Source
-spec setMargins(This, Left, Right) -> ok
              when This :: wxStyledTextCtrl(), Left :: integer(), Right :: integer().

Set the left and right margin in the edit area, measured in pixels.

Link to this function

setMarginType(This, Margin, MarginType)

View Source
-spec setMarginType(This, Margin, MarginType) -> ok
                 when This :: wxStyledTextCtrl(), Margin :: integer(), MarginType :: integer().

Set a margin to be either numeric or symbolic.

The second argument should be one of the ?wxSTCMARGIN* constants.

Link to this function

setMarginWidth(This, Margin, PixelWidth)

View Source
-spec setMarginWidth(This, Margin, PixelWidth) -> ok
                  when This :: wxStyledTextCtrl(), Margin :: integer(), PixelWidth :: integer().

Set the width of a margin to a width expressed in pixels.

Link to this function

setModEventMask(This, EventMask)

View Source
-spec setModEventMask(This, EventMask) -> ok when This :: wxStyledTextCtrl(), EventMask :: integer().

Set which document modification events are sent to the container.

The input should be a bit list containing one or more of the ?wxSTCMOD constants, the ?wxSTCPERFORMED constants, wxSTC_STARTACTION, wxSTC_MULTILINEUNDOREDO, wxSTC_MULTISTEPUNDOREDO, and wxSTC_LASTSTEPINUNDOREDO. The input can also be wxSTC_MODEVENTMASKALL to indicate that all changes should generate events.

Link to this function

setMouseDownCaptures(This, Captures)

View Source
-spec setMouseDownCaptures(This, Captures) -> ok when This :: wxStyledTextCtrl(), Captures :: boolean().

Set whether the mouse is captured when its button is pressed.

Link to this function

setMouseDwellTime(This, PeriodMilliseconds)

View Source
-spec setMouseDwellTime(This, PeriodMilliseconds) -> ok
                     when This :: wxStyledTextCtrl(), PeriodMilliseconds :: integer().

Sets the time the mouse must sit still to generate a mouse dwell event.

The input should be a time in milliseconds or wxSTC_TIME_FOREVER.

Link to this function

setPasteConvertEndings(This, Convert)

View Source
-spec setPasteConvertEndings(This, Convert) -> ok when This :: wxStyledTextCtrl(), Convert :: boolean().

Enable/Disable convert-on-paste for line endings.

Link to this function

setPrintColourMode(This, Mode)

View Source
-spec setPrintColourMode(This, Mode) -> ok when This :: wxStyledTextCtrl(), Mode :: integer().

Modify colours when printing for clearer printed text.

The input should be one of the ?wxSTCPRINT* constants.

Link to this function

setPrintMagnification(This, Magnification)

View Source
-spec setPrintMagnification(This, Magnification) -> ok
                         when This :: wxStyledTextCtrl(), Magnification :: integer().

Sets the print magnification added to the point size of each style for printing.

Link to this function

setProperty(This, Key, Value)

View Source
-spec setProperty(This, Key, Value) -> ok
               when
                   This :: wxStyledTextCtrl(),
                   Key :: unicode:chardata(),
                   Value :: unicode:chardata().

Set up a value that may be used by a lexer for some optional feature.

Link to this function

setReadOnly(This, ReadOnly)

View Source
-spec setReadOnly(This, ReadOnly) -> ok when This :: wxStyledTextCtrl(), ReadOnly :: boolean().

Set to read only or read write.

-spec setSavePoint(This) -> ok when This :: wxStyledTextCtrl().

Remember the current position in the undo history as the position at which the document was saved.

Link to this function

setScrollWidth(This, PixelWidth)

View Source
-spec setScrollWidth(This, PixelWidth) -> ok when This :: wxStyledTextCtrl(), PixelWidth :: integer().

Sets the document width assumed for scrolling.

Link to this function

setSearchFlags(This, SearchFlags)

View Source
-spec setSearchFlags(This, SearchFlags) -> ok when This :: wxStyledTextCtrl(), SearchFlags :: integer().

Set the search flags used by SearchInTarget.

The input should be a bit list containing one or more of the ?wxSTCFIND* constants.

Link to this function

setSelAlpha(This, Alpha)

View Source
-spec setSelAlpha(This, Alpha) -> ok when This :: wxStyledTextCtrl(), Alpha :: integer().

Set the alpha of the selection.

Link to this function

setSelBackground(This, UseSetting, Back)

View Source
-spec setSelBackground(This, UseSetting, Back) -> ok
                    when
                        This :: wxStyledTextCtrl(),
                        UseSetting :: boolean(),
                        Back :: wx:wx_colour().

Set the background colour of the main and additional selections and whether to use this setting.

Link to this function

setSelection(This, From, To)

View Source
-spec setSelection(This, From, To) -> ok
                when This :: wxStyledTextCtrl(), From :: integer(), To :: integer().

Selects the text starting at the first position up to (but not including) the character at the last position.

If both parameters are equal to -1 all text in the control is selected.

Notice that the insertion point will be moved to from by this function.

See: selectAll/1

Link to this function

setSelectionEnd(This, Caret)

View Source
-spec setSelectionEnd(This, Caret) -> ok when This :: wxStyledTextCtrl(), Caret :: integer().

Sets the position that ends the selection - this becomes the caret.

Link to this function

setSelectionMode(This, SelectionMode)

View Source
-spec setSelectionMode(This, SelectionMode) -> ok
                    when This :: wxStyledTextCtrl(), SelectionMode :: integer().

Set the selection mode to stream (wxSTC_SEL_STREAM) or rectangular (wxSTC_SEL_RECTANGLE/wxSTC_SEL_THIN) or by lines (wxSTC_SEL_LINES).

Link to this function

setSelectionStart(This, Anchor)

View Source
-spec setSelectionStart(This, Anchor) -> ok when This :: wxStyledTextCtrl(), Anchor :: integer().

Sets the position that starts the selection - this becomes the anchor.

Link to this function

setSelForeground(This, UseSetting, Fore)

View Source
-spec setSelForeground(This, UseSetting, Fore) -> ok
                    when
                        This :: wxStyledTextCtrl(),
                        UseSetting :: boolean(),
                        Fore :: wx:wx_colour().

Set the foreground colour of the main and additional selections and whether to use this setting.

Link to this function

setSTCCursor(This, CursorType)

View Source
-spec setSTCCursor(This, CursorType) -> ok when This :: wxStyledTextCtrl(), CursorType :: integer().

Sets the cursor to one of the wxSTC_CURSOR* values.

Link to this function

setSTCFocus(This, Focus)

View Source
-spec setSTCFocus(This, Focus) -> ok when This :: wxStyledTextCtrl(), Focus :: boolean().

Change internal focus flag.

-spec setStatus(This, Status) -> ok when This :: wxStyledTextCtrl(), Status :: integer().

Change error status - 0 = OK.

The input should be one of the ?wxSTCSTATUS* constants.

Link to this function

setStyleBytes(This, Length)

View Source
-spec setStyleBytes(This, Length) -> integer() when This :: wxStyledTextCtrl(), Length :: integer().

Set the styles for a segment of the document.

Link to this function

setStyling(This, Length, Style)

View Source
-spec setStyling(This, Length, Style) -> ok
              when This :: wxStyledTextCtrl(), Length :: integer(), Style :: integer().

Change style from current styling position for length characters to a style and move the current styling position to after this newly styled segment.

Link to this function

setTabIndents(This, TabIndents)

View Source
-spec setTabIndents(This, TabIndents) -> ok when This :: wxStyledTextCtrl(), TabIndents :: boolean().

Sets whether a tab pressed when caret is within indentation indents.

Link to this function

setTabWidth(This, TabWidth)

View Source
-spec setTabWidth(This, TabWidth) -> ok when This :: wxStyledTextCtrl(), TabWidth :: integer().

Change the visible size of a tab to be a multiple of the width of a space character.

-spec setTargetEnd(This, End) -> ok when This :: wxStyledTextCtrl(), End :: integer().

Sets the position that ends the target which is used for updating the document without affecting the scroll position.

Link to this function

setTargetStart(This, Start)

View Source
-spec setTargetStart(This, Start) -> ok when This :: wxStyledTextCtrl(), Start :: integer().

Sets the position that starts the target which is used for updating the document without affecting the scroll position.

-spec setText(This, Text) -> ok when This :: wxStyledTextCtrl(), Text :: unicode:chardata().

Replace the contents of the document with the argument text.

-spec setTextRaw(This, Text) -> ok when This :: wxStyledTextCtrl(), Text :: binary().

Replace the contents of the document with the argument text.

Link to this function

setTwoPhaseDraw(This, TwoPhase)

View Source
-spec setTwoPhaseDraw(This, TwoPhase) -> ok when This :: wxStyledTextCtrl(), TwoPhase :: boolean().

In twoPhaseDraw mode, drawing is performed in two phases, first the background and then the foreground.

This avoids chopping off characters that overlap the next run.

Link to this function

setUndoCollection(This, CollectUndo)

View Source
-spec setUndoCollection(This, CollectUndo) -> ok
                     when This :: wxStyledTextCtrl(), CollectUndo :: boolean().

Choose between collecting actions into the undo history and discarding them.

Link to this function

setUseHorizontalScrollBar(This, Visible)

View Source
-spec setUseHorizontalScrollBar(This, Visible) -> ok
                             when This :: wxStyledTextCtrl(), Visible :: boolean().

Show or hide the horizontal scroll bar.

Link to this function

setUseTabs(This, UseTabs)

View Source
-spec setUseTabs(This, UseTabs) -> ok when This :: wxStyledTextCtrl(), UseTabs :: boolean().

Indentation will only use space characters if useTabs is false, otherwise it will use a combination of tabs and spaces.

Link to this function

setUseVerticalScrollBar(This, Visible)

View Source
-spec setUseVerticalScrollBar(This, Visible) -> ok when This :: wxStyledTextCtrl(), Visible :: boolean().

Show or hide the vertical scroll bar.

Link to this function

setViewEOL(This, Visible)

View Source
-spec setViewEOL(This, Visible) -> ok when This :: wxStyledTextCtrl(), Visible :: boolean().

Make the end of line characters visible or invisible.

Link to this function

setViewWhiteSpace(This, ViewWS)

View Source
-spec setViewWhiteSpace(This, ViewWS) -> ok when This :: wxStyledTextCtrl(), ViewWS :: integer().

Make white space characters invisible, always visible or visible outside indentation.

The input should be one of the ?wxSTCWS* constants.

Link to this function

setVisiblePolicy(This, VisiblePolicy, VisibleSlop)

View Source
-spec setVisiblePolicy(This, VisiblePolicy, VisibleSlop) -> ok
                    when
                        This :: wxStyledTextCtrl(),
                        VisiblePolicy :: integer(),
                        VisibleSlop :: integer().

Set the way the display area is determined when a particular line is to be moved to by Find, FindNext, GotoLine, etc.

The first argument should be a bit list containing one or more of the ?wxSTCVISIBLE* constants.

Link to this function

setVScrollBar(This, Bar)

View Source
-spec setVScrollBar(This, Bar) -> ok when This :: wxStyledTextCtrl(), Bar :: wxScrollBar:wxScrollBar().

Set the vertical scrollbar to use instead of the one that's built-in.

Link to this function

setWhitespaceBackground(This, UseSetting, Back)

View Source
-spec setWhitespaceBackground(This, UseSetting, Back) -> ok
                           when
                               This :: wxStyledTextCtrl(),
                               UseSetting :: boolean(),
                               Back :: wx:wx_colour().

Set the background colour of all whitespace and whether to use this setting.

Link to this function

setWhitespaceChars(This, Characters)

View Source
-spec setWhitespaceChars(This, Characters) -> ok
                      when This :: wxStyledTextCtrl(), Characters :: unicode:chardata().

Set the set of characters making up whitespace for when moving or selecting by word.

Should be called after SetWordChars.

Link to this function

setWhitespaceForeground(This, UseSetting, Fore)

View Source
-spec setWhitespaceForeground(This, UseSetting, Fore) -> ok
                           when
                               This :: wxStyledTextCtrl(),
                               UseSetting :: boolean(),
                               Fore :: wx:wx_colour().

Set the foreground colour of all whitespace and whether to use this setting.

Link to this function

setWordChars(This, Characters)

View Source
-spec setWordChars(This, Characters) -> ok
                when This :: wxStyledTextCtrl(), Characters :: unicode:chardata().

Set the set of characters making up words for when moving or selecting by word.

First sets defaults like SetCharsDefault.

Link to this function

setWrapMode(This, WrapMode)

View Source
-spec setWrapMode(This, WrapMode) -> ok when This :: wxStyledTextCtrl(), WrapMode :: integer().

Sets whether text is word wrapped.

The input should be one of the ?wxSTCWRAP* constants.

Link to this function

setWrapStartIndent(This, Indent)

View Source
-spec setWrapStartIndent(This, Indent) -> ok when This :: wxStyledTextCtrl(), Indent :: integer().

Set the start indent for wrapped lines.

Link to this function

setWrapVisualFlags(This, WrapVisualFlags)

View Source
-spec setWrapVisualFlags(This, WrapVisualFlags) -> ok
                      when This :: wxStyledTextCtrl(), WrapVisualFlags :: integer().

Set the display mode of visual flags for wrapped lines.

The input should be a bit list containing one or more of the ?wxSTCWRAPVISUALFLAG* constants.

Link to this function

setWrapVisualFlagsLocation(This, WrapVisualFlagsLocation)

View Source
-spec setWrapVisualFlagsLocation(This, WrapVisualFlagsLocation) -> ok
                              when
                                  This :: wxStyledTextCtrl(), WrapVisualFlagsLocation :: integer().

Set the location of visual flags for wrapped lines.

The input should be a bit list containing one or more of the ?wxSTCWRAPVISUALFLAGLOC* constants.

Link to this function

setXCaretPolicy(This, CaretPolicy, CaretSlop)

View Source
-spec setXCaretPolicy(This, CaretPolicy, CaretSlop) -> ok
                   when
                       This :: wxStyledTextCtrl(),
                       CaretPolicy :: integer(),
                       CaretSlop :: integer().

Set the way the caret is kept visible when going sideways.

The exclusion zone is given in pixels.

The first argument should be a bit list containing one or more of the ?wxSTCCARET* constants.

Link to this function

setYCaretPolicy(This, CaretPolicy, CaretSlop)

View Source
-spec setYCaretPolicy(This, CaretPolicy, CaretSlop) -> ok
                   when
                       This :: wxStyledTextCtrl(),
                       CaretPolicy :: integer(),
                       CaretSlop :: integer().

Set the way the line the caret is on is kept visible.

The exclusion zone is given in lines.

The first argument should be a bit list containing one or more of the ?wxSTCCARET* constants.

Link to this function

setZoom(This, ZoomInPoints)

View Source
-spec setZoom(This, ZoomInPoints) -> ok when This :: wxStyledTextCtrl(), ZoomInPoints :: integer().

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.

Link to this function

showLines(This, LineStart, LineEnd)

View Source
-spec showLines(This, LineStart, LineEnd) -> ok
             when This :: wxStyledTextCtrl(), LineStart :: integer(), LineEnd :: integer().

Make a range of lines visible.

-spec startRecord(This) -> ok when This :: wxStyledTextCtrl().

Start notifying the container of all key presses and commands.

Link to this function

startStyling(This, Start)

View Source
-spec startStyling(This, Start) -> ok when This :: wxStyledTextCtrl(), Start :: integer().

Set the current styling position to start.

-spec stopRecord(This) -> ok when This :: wxStyledTextCtrl().

Stop notifying the container of all key presses and commands.

-spec stutteredPageDown(This) -> ok when This :: wxStyledTextCtrl().

Move caret to bottom of page, or one page down if already at bottom of page.

Link to this function

stutteredPageDownExtend(This)

View Source
-spec stutteredPageDownExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position.

-spec stutteredPageUp(This) -> ok when This :: wxStyledTextCtrl().

Move caret to top of page, or one page up if already at top of page.

Link to this function

stutteredPageUpExtend(This)

View Source
-spec stutteredPageUpExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret to top of page, or one page up if already at top of page, extending selection to new caret position.

-spec styleClearAll(This) -> ok when This :: wxStyledTextCtrl().

Clear all the styles and make equivalent to the global default style.

-spec styleResetDefault(This) -> ok when This :: wxStyledTextCtrl().

Reset the default style to its state at startup.

Link to this function

styleSetBackground(This, Style, Back)

View Source
-spec styleSetBackground(This, Style, Back) -> ok
                      when This :: wxStyledTextCtrl(), Style :: integer(), Back :: wx:wx_colour().

Set the background colour of a style.

Link to this function

styleSetBold(This, Style, Bold)

View Source
-spec styleSetBold(This, Style, Bold) -> ok
                when This :: wxStyledTextCtrl(), Style :: integer(), Bold :: boolean().

Set a style to be bold or not.

Link to this function

styleSetCase(This, Style, CaseVisible)

View Source
-spec styleSetCase(This, Style, CaseVisible) -> ok
                when This :: wxStyledTextCtrl(), Style :: integer(), CaseVisible :: integer().

Set a style to be mixed case, or to force upper or lower case.

The second argument should be one of the ?wxSTCCASE* constants.

Link to this function

styleSetCharacterSet(This, Style, CharacterSet)

View Source
-spec styleSetCharacterSet(This, Style, CharacterSet) -> ok
                        when
                            This :: wxStyledTextCtrl(),
                            Style :: integer(),
                            CharacterSet :: integer().

Set the character set of the font in a style.

Converts the Scintilla character set values to a wxFontEncoding.

Link to this function

styleSetEOLFilled(This, Style, EolFilled)

View Source
-spec styleSetEOLFilled(This, Style, EolFilled) -> ok
                     when This :: wxStyledTextCtrl(), Style :: integer(), EolFilled :: boolean().

Set a style to have its end of line filled or not.

Link to this function

styleSetFaceName(This, Style, FontName)

View Source
-spec styleSetFaceName(This, Style, FontName) -> ok
                    when
                        This :: wxStyledTextCtrl(),
                        Style :: integer(),
                        FontName :: unicode:chardata().

Set the font of a style.

Link to this function

styleSetFont(This, StyleNum, Font)

View Source
-spec styleSetFont(This, StyleNum, Font) -> ok
                when This :: wxStyledTextCtrl(), StyleNum :: integer(), Font :: wxFont:wxFont().

Set style size, face, bold, italic, and underline attributes from a wxFont's attributes.

Link to this function

styleSetFontAttr(This, StyleNum, Size, FaceName, Bold, Italic, Underline)

View Source
-spec styleSetFontAttr(This, StyleNum, Size, FaceName, Bold, Italic, Underline) -> ok
                    when
                        This :: wxStyledTextCtrl(),
                        StyleNum :: integer(),
                        Size :: integer(),
                        FaceName :: unicode:chardata(),
                        Bold :: boolean(),
                        Italic :: boolean(),
                        Underline :: boolean().
-spec styleSetFontAttr(This, StyleNum, Size, FaceName, Bold, Italic, Underline, [Option]) -> ok
                    when
                        This :: wxStyledTextCtrl(),
                        StyleNum :: integer(),
                        Size :: integer(),
                        FaceName :: unicode:chardata(),
                        Bold :: boolean(),
                        Italic :: boolean(),
                        Underline :: boolean(),
                        Option :: {encoding, wx:wx_enum()}.

Set all font style attributes at once.

Link to this function

styleSetFontEncoding(This, Style, Encoding)

View Source
-spec styleSetFontEncoding(This, Style, Encoding) -> ok
                        when
                            This :: wxStyledTextCtrl(),
                            Style :: integer(),
                            Encoding :: wx:wx_enum().

Set the font encoding to be used by a style.

Link to this function

styleSetForeground(This, Style, Fore)

View Source
-spec styleSetForeground(This, Style, Fore) -> ok
                      when This :: wxStyledTextCtrl(), Style :: integer(), Fore :: wx:wx_colour().

Set the foreground colour of a style.

Link to this function

styleSetHotSpot(This, Style, Hotspot)

View Source
-spec styleSetHotSpot(This, Style, Hotspot) -> ok
                   when This :: wxStyledTextCtrl(), Style :: integer(), Hotspot :: boolean().

Set a style to be a hotspot or not.

Link to this function

styleSetItalic(This, Style, Italic)

View Source
-spec styleSetItalic(This, Style, Italic) -> ok
                  when This :: wxStyledTextCtrl(), Style :: integer(), Italic :: boolean().

Set a style to be italic or not.

Link to this function

styleSetSize(This, Style, SizePoints)

View Source
-spec styleSetSize(This, Style, SizePoints) -> ok
                when This :: wxStyledTextCtrl(), Style :: integer(), SizePoints :: integer().

Set the size of characters of a style.

Link to this function

styleSetSpec(This, StyleNum, Spec)

View Source
-spec styleSetSpec(This, StyleNum, Spec) -> ok
                when This :: wxStyledTextCtrl(), StyleNum :: integer(), Spec :: unicode:chardata().

Extract style settings from a spec-string which is composed of one or more of the following comma separated elements:

bold turns on bold italic turns on italics fore:[name or #RRGGBB] sets the foreground colour back:[name or #RRGGBB] sets the background colour face:[facename] sets the font face name to use size:[num] sets the font size in points eol turns on eol filling underline turns on underlining

Link to this function

styleSetUnderline(This, Style, Underline)

View Source
-spec styleSetUnderline(This, Style, Underline) -> ok
                     when This :: wxStyledTextCtrl(), Style :: integer(), Underline :: boolean().

Set a style to be underlined or not.

Link to this function

styleSetVisible(This, Style, Visible)

View Source
-spec styleSetVisible(This, Style, Visible) -> ok
                   when This :: wxStyledTextCtrl(), Style :: integer(), Visible :: boolean().

Set a style to be visible or not.

-spec tab(This) -> ok when This :: wxStyledTextCtrl().

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.

Link to this function

targetFromSelection(This)

View Source
-spec targetFromSelection(This) -> ok when This :: wxStyledTextCtrl().

Make the target range start and end be the same as the selection range start and end.

-spec textHeight(This, Line) -> integer() when This :: wxStyledTextCtrl(), Line :: integer().

Retrieve the height of a particular line of text in pixels.

Link to this function

textWidth(This, Style, Text)

View Source
-spec textWidth(This, Style, Text) -> integer()
             when This :: wxStyledTextCtrl(), Style :: integer(), Text :: unicode:chardata().

Measure the pixel width of some text in a particular style.

Does not handle tab or control characters.

-spec toggleCaretSticky(This) -> ok when This :: wxStyledTextCtrl().

Switch between sticky and non-sticky: meant to be bound to a key.

-spec toggleFold(This, Line) -> ok when This :: wxStyledTextCtrl(), Line :: integer().

Switch a header line between expanded and contracted.

-spec undo(This) -> ok when This :: wxStyledTextCtrl().

Undo one action in the undo history.

-spec upperCase(This) -> ok when This :: wxStyledTextCtrl().

Transform the selection to upper case.

Link to this function

usePopUp(This, PopUpMode)

View Source
-spec usePopUp(This, PopUpMode) -> ok when This :: wxStyledTextCtrl(), PopUpMode :: integer().

Set whether a pop up menu is displayed automatically when the user presses the wrong mouse button on certain areas.

The input should be one of the ?wxSTCPOPUP* constants.

Remark: When wxContextMenuEvent is used to create a custom popup menu, this function should be called with wxSTC_POPUP_NEVER. Otherwise the default menu will be shown instead of the custom one.

Link to this function

userListShow(This, ListType, ItemList)

View Source
-spec userListShow(This, ListType, ItemList) -> ok
                when
                    This :: wxStyledTextCtrl(),
                    ListType :: integer(),
                    ItemList :: unicode:chardata().

Display a list of strings and send notification when user chooses one.

-spec vCHome(This) -> ok when This :: wxStyledTextCtrl().

Move caret to before first visible character on line.

If already there move to first character on line.

-spec vCHomeExtend(This) -> ok when This :: wxStyledTextCtrl().

Like VCHome but extending selection to new caret position.

-spec vCHomeRectExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret to before first visible character on line.

If already there move to first character on line. In either case, extend rectangular selection to new caret position.

-spec vCHomeWrap(This) -> ok when This :: wxStyledTextCtrl().

Like VCHome but when word-wrap is enabled goes first to start of display line VCHomeDisplay, then behaves like VCHome.

-spec vCHomeWrapExtend(This) -> ok when This :: wxStyledTextCtrl().

Like VCHomeExtend but when word-wrap is enabled extends first to start of display line VCHomeDisplayExtend, then behaves like VCHomeExtend.

Link to this function

visibleFromDocLine(This, DocLine)

View Source
-spec visibleFromDocLine(This, DocLine) -> integer()
                      when This :: wxStyledTextCtrl(), DocLine :: integer().

Find the display line of a document line taking hidden lines into account.

Link to this function

wordEndPosition(This, Pos, OnlyWordCharacters)

View Source
-spec wordEndPosition(This, Pos, OnlyWordCharacters) -> integer()
                   when
                       This :: wxStyledTextCtrl(),
                       Pos :: integer(),
                       OnlyWordCharacters :: boolean().

Get position of end of word.

-spec wordLeft(This) -> ok when This :: wxStyledTextCtrl().

Move caret left one word.

-spec wordLeftEnd(This) -> ok when This :: wxStyledTextCtrl().

Move caret left one word, position cursor at end of word.

-spec wordLeftEndExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret left one word, position cursor at end of word, extending selection to new caret position.

-spec wordLeftExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret left one word extending selection to new caret position.

-spec wordPartLeft(This) -> ok when This :: wxStyledTextCtrl().

Move to the previous change in capitalisation.

Link to this function

wordPartLeftExtend(This)

View Source
-spec wordPartLeftExtend(This) -> ok when This :: wxStyledTextCtrl().

Move to the previous change in capitalisation extending selection to new caret position.

-spec wordPartRight(This) -> ok when This :: wxStyledTextCtrl().

Move to the change next in capitalisation.

Link to this function

wordPartRightExtend(This)

View Source
-spec wordPartRightExtend(This) -> ok when This :: wxStyledTextCtrl().

Move to the next change in capitalisation extending selection to new caret position.

-spec wordRight(This) -> ok when This :: wxStyledTextCtrl().

Move caret right one word.

-spec wordRightEnd(This) -> ok when This :: wxStyledTextCtrl().

Move caret right one word, position cursor at end of word.

Link to this function

wordRightEndExtend(This)

View Source
-spec wordRightEndExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret right one word, position cursor at end of word, extending selection to new caret position.

-spec wordRightExtend(This) -> ok when This :: wxStyledTextCtrl().

Move caret right one word extending selection to new caret position.

Link to this function

wordStartPosition(This, Pos, OnlyWordCharacters)

View Source
-spec wordStartPosition(This, Pos, OnlyWordCharacters) -> integer()
                     when
                         This :: wxStyledTextCtrl(),
                         Pos :: integer(),
                         OnlyWordCharacters :: boolean().

Get position of start of word.

Link to this function

wrapCount(This, DocLine)

View Source
-spec wrapCount(This, DocLine) -> integer() when This :: wxStyledTextCtrl(), DocLine :: integer().

The number of display lines needed to wrap a document line.

-spec zoomIn(This) -> ok when This :: wxStyledTextCtrl().

Magnify the displayed text by increasing the sizes by 1 point.

-spec zoomOut(This) -> ok when This :: wxStyledTextCtrl().

Make the displayed text smaller by decreasing the sizes by 1 point.