Version: 3.0.3
wxStyledTextCtrl Class Reference

#include <wx/stc/stc.h>

+ Inheritance diagram for wxStyledTextCtrl:

Detailed Description

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

Events emitted by this class

The following event handler macros redirect the events to member function handlers 'func' with prototypes like:

void handlerFuncName(wxStyledTextEvent& event)

Event macros for events emitted by this class:

  • EVT_STC_CHANGE(id, fn):
    TOWRITE
  • EVT_STC_STYLENEEDED(id, fn):
    TOWRITE
  • EVT_STC_CHARADDED(id, fn):
    TOWRITE
  • EVT_STC_SAVEPOINTREACHED(id, fn):
    TOWRITE
  • EVT_STC_SAVEPOINTLEFT(id, fn):
    TOWRITE
  • EVT_STC_ROMODIFYATTEMPT(id, fn):
    TOWRITE
  • EVT_STC_KEY(id, fn):
    TOWRITE
  • EVT_STC_DOUBLECLICK(id, fn):
    TOWRITE
  • EVT_STC_UPDATEUI(id, fn):
    TOWRITE
  • EVT_STC_MODIFIED(id, fn):
    TOWRITE
  • EVT_STC_MACRORECORD(id, fn):
    TOWRITE
  • EVT_STC_MARGINCLICK(id, fn):
    TOWRITE
  • EVT_STC_NEEDSHOWN(id, fn):
    TOWRITE
  • EVT_STC_PAINTED(id, fn):
    TOWRITE
  • EVT_STC_USERLISTSELECTION(id, fn):
    TOWRITE
  • EVT_STC_URIDROPPED(id, fn):
    TOWRITE
  • EVT_STC_DWELLSTART(id, fn):
    TOWRITE
  • EVT_STC_DWELLEND(id, fn):
    TOWRITE
  • EVT_STC_START_DRAG(id, fn):
    TOWRITE
  • EVT_STC_DRAG_OVER(id, fn):
    TOWRITE
  • EVT_STC_DO_DROP(id, fn):
    TOWRITE
  • EVT_STC_ZOOM(id, fn):
    TOWRITE
  • EVT_STC_HOTSPOT_CLICK(id, fn):
    TOWRITE
  • EVT_STC_HOTSPOT_DCLICK(id, fn):
    TOWRITE
  • EVT_STC_CALLTIP_CLICK(id, fn):
    TOWRITE
  • EVT_STC_AUTOCOMP_SELECTION(id, fn):
    TOWRITE
  • EVT_STC_INDICATOR_CLICK(id, fn):
    TOWRITE
  • EVT_STC_INDICATOR_RELEASE(id, fn):
    TOWRITE
  • EVT_STC_AUTOCOMP_CANCELLED(id, fn):
    TOWRITE
  • EVT_STC_AUTOCOMP_CHAR_DELETED(id, fn):
    TOWRITE
  • EVT_STC_HOTSPOT_RELEASE_CLICK(id, fn):
    TOWRITE

Library:  wxSTC
Category:  Scintilla Text Editor
See also
wxStyledTextEvent

Public Member Functions

 wxStyledTextCtrl (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=wxSTCNameStr)
 Ctor. More...
 
 wxStyledTextCtrl ()
 Default ctor. More...
 
 ~wxStyledTextCtrl ()
 Destructor. More...
 
bool Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=wxSTCNameStr)
 Create the UI elements for a STC that was created with the default ctor. More...
 
void AddText (const wxString &text)
 Add text to the document at current position. More...
 
void AddStyledText (const wxMemoryBuffer &data)
 Add array of cells to document. More...
 
void InsertText (int pos, const wxString &text)
 Insert string at a position. More...
 
void ClearAll ()
 Delete all text in the document. More...
 
void DeleteRange (int pos, int deleteLength)
 Delete a range of text in the document. More...
 
void ClearDocumentStyle ()
 Set all style bytes to 0, remove all folding information. More...
 
int GetLength () const
 Returns the number of bytes in the document. More...
 
int GetCharAt (int pos) const
 Returns the character byte at the position. More...
 
int GetCurrentPos () const
 Returns the position of the caret. More...
 
int GetAnchor () const
 Returns the position of the opposite end of the selection to the caret. More...
 
int GetStyleAt (int pos) const
 Returns the style byte at the position. More...
 
void Redo ()
 Redoes the next action on the undo history. More...
 
void SetUndoCollection (bool collectUndo)
 Choose between collecting actions into the undo history and discarding them. More...
 
void SelectAll ()
 Select all the text in the document. More...
 
void SetSavePoint ()
 Remember the current position in the undo history as the position at which the document was saved. More...
 
wxMemoryBuffer GetStyledText (int startPos, int endPos)
 Retrieve a buffer of cells. More...
 
bool CanRedo () const
 Are there any redoable actions in the undo history? More...
 
int MarkerLineFromHandle (int handle)
 Retrieve the line number at which a particular marker is located. More...
 
void MarkerDeleteHandle (int handle)
 Delete a marker. More...
 
bool GetUndoCollection () const
 Is undo history being collected? More...
 
int GetViewWhiteSpace () const
 Are white space characters currently visible? Returns one of SCWS_* constants. More...
 
void SetViewWhiteSpace (int viewWS)
 Make white space characters invisible, always visible or visible outside indentation. More...
 
int PositionFromPoint (wxPoint pt) const
 Find the position from a point within the window. More...
 
int PositionFromPointClose (int x, int y)
 Find the position from a point within the window but return INVALID_POSITION if not close to text. More...
 
void GotoLine (int line)
 Set caret to start of a line and ensure it is visible. More...
 
void GotoPos (int pos)
 Set caret to a position and ensure it is visible. More...
 
void SetAnchor (int posAnchor)
 Set the selection anchor to a position. More...
 
wxString GetCurLine (int *linePos=NULL)
 Retrieve the text of the line containing the caret. More...
 
int GetEndStyled () const
 Retrieve the position of the last correctly styled character. More...
 
void ConvertEOLs (int eolMode)
 Convert all line endings in the document to one mode. More...
 
int GetEOLMode () const
 Retrieve the current end of line mode - one of CRLF, CR, or LF. More...
 
void SetEOLMode (int eolMode)
 Set the current end of line mode. More...
 
void StartStyling (int pos, int mask)
 Set the current styling position to pos and the styling mask to mask. More...
 
void SetStyling (int length, int style)
 Change style from current styling position for length characters to a style and move the current styling position to after this newly styled segment. More...
 
bool GetBufferedDraw () const
 Is drawing done first into a buffer or direct to the screen? More...
 
void SetBufferedDraw (bool buffered)
 If drawing is buffered then each line of text is drawn into a bitmap buffer before drawing it to the screen to avoid flicker. More...
 
void SetTabWidth (int tabWidth)
 Change the visible size of a tab to be a multiple of the width of a space character. More...
 
int GetTabWidth () const
 Retrieve the visible size of a tab. More...
 
void SetCodePage (int codePage)
 Set the code page used to interpret the bytes of the document as characters. More...
 
void MarkerDefine (int markerNumber, int markerSymbol, const wxColour &foreground=wxNullColour, const wxColour &background=wxNullColour)
 Set the symbol used for a particular marker number, and optionally the fore and background colours. More...
 
void MarkerSetForeground (int markerNumber, const wxColour &fore)
 Set the foreground colour used for a particular marker number. More...
 
void MarkerSetBackground (int markerNumber, const wxColour &back)
 Set the background colour used for a particular marker number. More...
 
void MarkerSetBackgroundSelected (int markerNumber, const wxColour &back)
 Set the background colour used for a particular marker number when its folding block is selected. More...
 
void MarkerEnableHighlight (bool enabled)
 Enable/disable highlight for current folding bloc (smallest one that contains the caret) More...
 
int MarkerAdd (int line, int markerNumber)
 Add a marker to a line, returning an ID which can be used to find or delete the marker. More...
 
void MarkerDelete (int line, int markerNumber)
 Delete a marker from a line. More...
 
void MarkerDeleteAll (int markerNumber)
 Delete all markers with a particular number from all lines. More...
 
int MarkerGet (int line)
 Get a bit mask of all the markers set on a line. More...
 
int MarkerNext (int lineStart, int markerMask)
 Find the next line at or after lineStart that includes a marker in mask. More...
 
int MarkerPrevious (int lineStart, int markerMask)
 Find the previous line before lineStart that includes a marker in mask. More...
 
void MarkerDefineBitmap (int markerNumber, const wxBitmap &bmp)
 Define a marker from a bitmap. More...
 
void MarkerAddSet (int line, int set)
 Add a set of markers to a line. More...
 
void MarkerSetAlpha (int markerNumber, int alpha)
 Set the alpha used for a marker that is drawn in the text area, not the margin. More...
 
void SetMarginType (int margin, int marginType)
 Set a margin to be either numeric or symbolic. More...
 
int GetMarginType (int margin) const
 Retrieve the type of a margin. More...
 
void SetMarginWidth (int margin, int pixelWidth)
 Set the width of a margin to a width expressed in pixels. More...
 
int GetMarginWidth (int margin) const
 Retrieve the width of a margin in pixels. More...
 
void SetMarginMask (int margin, int mask)
 Set a mask that determines which markers are displayed in a margin. More...
 
int GetMarginMask (int margin) const
 Retrieve the marker mask of a margin. More...
 
void SetMarginSensitive (int margin, bool sensitive)
 Make a margin sensitive or insensitive to mouse clicks. More...
 
bool GetMarginSensitive (int margin) const
 Retrieve the mouse click sensitivity of a margin. More...
 
void SetMarginCursor (int margin, int cursor)
 Set the cursor shown when the mouse is inside a margin. More...
 
int GetMarginCursor (int margin) const
 Retrieve the cursor shown in a margin. More...
 
void StyleClearAll ()
 Clear all the styles and make equivalent to the global default style. More...
 
void StyleSetForeground (int style, const wxColour &fore)
 Set the foreground colour of a style. More...
 
void StyleSetBackground (int style, const wxColour &back)
 Set the background colour of a style. More...
 
void StyleSetBold (int style, bool bold)
 Set a style to be bold or not. More...
 
void StyleSetItalic (int style, bool italic)
 Set a style to be italic or not. More...
 
void StyleSetSize (int style, int sizePoints)
 Set the size of characters of a style. More...
 
void StyleSetFaceName (int style, const wxString &fontName)
 Set the font of a style. More...
 
void StyleSetEOLFilled (int style, bool filled)
 Set a style to have its end of line filled or not. More...
 
void StyleResetDefault ()
 Reset the default style to its state at startup. More...
 
void StyleSetUnderline (int style, bool underline)
 Set a style to be underlined or not. More...
 
wxColour StyleGetForeground (int style) const
 Get the foreground colour of a style. More...
 
wxColour StyleGetBackground (int style) const
 Get the background colour of a style. More...
 
bool StyleGetBold (int style) const
 Get is a style bold or not. More...
 
bool StyleGetItalic (int style) const
 Get is a style italic or not. More...
 
int StyleGetSize (int style) const
 Get the size of characters of a style. More...
 
wxString StyleGetFaceName (int style)
 Get the font facename of a style. More...
 
bool StyleGetEOLFilled (int style) const
 Get is a style to have its end of line filled or not. More...
 
bool StyleGetUnderline (int style) const
 Get is a style underlined or not. More...
 
int StyleGetCase (int style) const
 Get is a style mixed case, or to force upper or lower case. More...
 
int StyleGetCharacterSet (int style) const
 Get the character set of the font in a style. More...
 
bool StyleGetVisible (int style) const
 Get is a style visible or not. More...
 
bool StyleGetChangeable (int style) const
 Get is a style changeable or not (read only). More...
 
bool StyleGetHotSpot (int style) const
 Get is a style a hotspot or not. More...
 
void StyleSetCase (int style, int caseForce)
 Set a style to be mixed case, or to force upper or lower case. More...
 
void StyleSetSizeFractional (int style, int caseForce)
 Set the size of characters of a style. More...
 
int StyleGetSizeFractional (int style) const
 Get the size of characters of a style in points multiplied by 100. More...
 
void StyleSetWeight (int style, int weight)
 Set the weight of characters of a style. More...
 
int StyleGetWeight (int style) const
 Get the weight of characters of a style. More...
 
void StyleSetHotSpot (int style, bool hotspot)
 Set a style to be a hotspot or not. More...
 
void SetSelForeground (bool useSetting, const wxColour &fore)
 Set the foreground colour of the main and additional selections and whether to use this setting. More...
 
void SetSelBackground (bool useSetting, const wxColour &back)
 Set the background colour of the main and additional selections and whether to use this setting. More...
 
int GetSelAlpha () const
 Get the alpha of the selection. More...
 
void SetSelAlpha (int alpha)
 Set the alpha of the selection. More...
 
bool GetSelEOLFilled () const
 Is the selection end of line filled? More...
 
void SetSelEOLFilled (bool filled)
 Set the selection to have its end of line filled or not. More...
 
void SetCaretForeground (const wxColour &fore)
 Set the foreground colour of the caret. More...
 
void CmdKeyAssign (int key, int modifiers, int cmd)
 When key+modifier combination km is pressed perform msg. More...
 
void CmdKeyClear (int key, int modifiers)
 When key+modifier combination km is pressed do nothing. More...
 
void CmdKeyClearAll ()
 Drop all key mappings. More...
 
void SetStyleBytes (int length, char *styleBytes)
 Set the styles for a segment of the document. More...
 
void StyleSetVisible (int style, bool visible)
 Set a style to be visible or not. More...
 
int GetCaretPeriod () const
 Get the time in milliseconds that the caret is on and off. More...
 
void SetCaretPeriod (int periodMilliseconds)
 Get the time in milliseconds that the caret is on and off. More...
 
void SetWordChars (const wxString &characters)
 Set the set of characters making up words for when moving or selecting by word. More...
 
wxString GetWordChars () const
 Get the set of characters making up words for when moving or selecting by word. More...
 
void BeginUndoAction ()
 Start a sequence of actions that is undone and redone as a unit. More...
 
void EndUndoAction ()
 End a sequence of actions that is undone and redone as a unit. More...
 
void IndicatorSetStyle (int indic, int style)
 Set an indicator to plain, squiggle or TT. More...
 
int IndicatorGetStyle (int indic) const
 Retrieve the style of an indicator. More...
 
void IndicatorSetForeground (int indic, const wxColour &fore)
 Set the foreground colour of an indicator. More...
 
wxColour IndicatorGetForeground (int indic) const
 Retrieve the foreground colour of an indicator. More...
 
void IndicatorSetUnder (int indic, bool under)
 Set an indicator to draw under text or over(default). More...
 
bool IndicatorGetUnder (int indic) const
 Retrieve whether indicator drawn under or over text. More...
 
void SetWhitespaceForeground (bool useSetting, const wxColour &fore)
 Set the foreground colour of all whitespace and whether to use this setting. More...
 
void SetWhitespaceBackground (bool useSetting, const wxColour &back)
 Set the background colour of all whitespace and whether to use this setting. More...
 
void SetWhitespaceSize (int size)
 Set the size of the dots used to mark space characters. More...
 
int GetWhitespaceSize () const
 Get the size of the dots used to mark space characters. More...
 
void SetStyleBits (int bits)
 Divide each styling byte into lexical class bits (default: 5) and indicator bits (default: 3). More...
 
int GetStyleBits () const
 Retrieve number of bits in style bytes used to hold the lexical state. More...
 
void SetLineState (int line, int state)
 Used to hold extra styling information for each line. More...
 
int GetLineState (int line) const
 Retrieve the extra styling information for a line. More...
 
int GetMaxLineState () const
 Retrieve the last line number that has line state. More...
 
bool GetCaretLineVisible () const
 Is the background of the line containing the caret in a different colour? More...
 
void SetCaretLineVisible (bool show)
 Display the background of the line containing the caret in a different colour. More...
 
wxColour GetCaretLineBackground () const
 Get the colour of the background of the line containing the caret. More...
 
void SetCaretLineBackground (const wxColour &back)
 Set the colour of the background of the line containing the caret. More...
 
void StyleSetChangeable (int style, bool changeable)
 Set a style to be changeable or not (read only). More...
 
void AutoCompShow (int lenEntered, const wxString &itemList)
 Display a auto-completion list. More...
 
void AutoCompCancel ()
 Remove the auto-completion list from the screen. More...
 
bool AutoCompActive ()
 Is there an auto-completion list visible? More...
 
int AutoCompPosStart ()
 Retrieve the position of the caret when the auto-completion list was displayed. More...
 
void AutoCompComplete ()
 User has selected an item so remove the list and insert the selection. More...
 
void AutoCompStops (const wxString &characterSet)
 Define a set of character that when typed cancel the auto-completion list. More...
 
void AutoCompSetSeparator (int separatorCharacter)
 Change the separator character in the string setting up an auto-completion list. More...
 
int AutoCompGetSeparator () const
 Retrieve the auto-completion list separator character. More...
 
void AutoCompSelect (const wxString &text)
 Select the item in the auto-completion list that starts with a string. More...
 
void AutoCompSetCancelAtStart (bool cancel)
 Should the auto-completion list be cancelled if the user backspaces to a position before where the box was created. More...
 
bool AutoCompGetCancelAtStart () const
 Retrieve whether auto-completion cancelled by backspacing before start. More...
 
void AutoCompSetFillUps (const wxString &characterSet)
 Define a set of characters that when typed will cause the autocompletion to choose the selected item. More...
 
void AutoCompSetChooseSingle (bool chooseSingle)
 Should a single item auto-completion list automatically choose the item. More...
 
bool AutoCompGetChooseSingle () const
 Retrieve whether a single item auto-completion list automatically choose the item. More...
 
void AutoCompSetIgnoreCase (bool ignoreCase)
 Set whether case is significant when performing auto-completion searches. More...
 
bool AutoCompGetIgnoreCase () const
 Retrieve state of ignore case flag. More...
 
void UserListShow (int listType, const wxString &itemList)
 Display a list of strings and send notification when user chooses one. More...
 
void AutoCompSetAutoHide (bool autoHide)
 Set whether or not autocompletion is hidden automatically when nothing matches. More...
 
bool AutoCompGetAutoHide () const
 Retrieve whether or not autocompletion is hidden automatically when nothing matches. More...
 
void AutoCompSetDropRestOfWord (bool dropRestOfWord)
 Set whether or not autocompletion deletes any word characters after the inserted text upon completion. More...
 
bool AutoCompGetDropRestOfWord () const
 Retrieve whether or not autocompletion deletes any word characters after the inserted text upon completion. More...
 
void RegisterImage (int type, const wxBitmap &bmp)
 Register an image for use in autocompletion lists. More...
 
void ClearRegisteredImages ()
 Clear all the registered images. More...
 
int AutoCompGetTypeSeparator () const
 Retrieve the auto-completion list type-separator character. More...
 
void AutoCompSetTypeSeparator (int separatorCharacter)
 Change the type-separator character in the string setting up an auto-completion list. More...
 
void AutoCompSetMaxWidth (int characterCount)
 Set the maximum width, in characters, of auto-completion and user lists. More...
 
int AutoCompGetMaxWidth () const
 Get the maximum width, in characters, of auto-completion and user lists. More...
 
void AutoCompSetMaxHeight (int rowCount)
 Set the maximum height, in rows, of auto-completion and user lists. More...
 
int AutoCompGetMaxHeight () const
 Set the maximum height, in rows, of auto-completion and user lists. More...
 
void SetIndent (int indentSize)
 Set the number of spaces used for one level of indentation. More...
 
int GetIndent () const
 Retrieve indentation size. More...
 
void SetUseTabs (bool useTabs)
 Indentation will only use space characters if useTabs is false, otherwise it will use a combination of tabs and spaces. More...
 
bool GetUseTabs () const
 Retrieve whether tabs will be used in indentation. More...
 
void SetLineIndentation (int line, int indentSize)
 Change the indentation of a line to a number of columns. More...
 
int GetLineIndentation (int line) const
 Retrieve the number of columns that a line is indented. More...
 
int GetLineIndentPosition (int line) const
 Retrieve the position before the first non indentation character on a line. More...
 
int GetColumn (int pos) const
 Retrieve the column number of a position, taking tab width into account. More...
 
int CountCharacters (int startPos, int endPos)
 Count characters between two positions. More...
 
void SetUseHorizontalScrollBar (bool show)
 Show or hide the horizontal scroll bar. More...
 
bool GetUseHorizontalScrollBar () const
 Is the horizontal scroll bar visible? More...
 
void SetIndentationGuides (int indentView)
 Show or hide indentation guides. More...
 
int GetIndentationGuides () const
 Are the indentation guides visible? More...
 
void SetHighlightGuide (int column)
 Set the highlighted indentation guide column. More...
 
int GetHighlightGuide () const
 Get the highlighted indentation guide column. More...
 
int GetLineEndPosition (int line) const
 Get the position after the last visible characters on a line. More...
 
int GetCodePage () const
 Get the code page used to interpret the bytes of the document as characters. More...
 
wxColour GetCaretForeground () const
 Get the foreground colour of the caret. More...
 
bool GetReadOnly () const
 In read-only mode? More...
 
void SetCurrentPos (int pos)
 Sets the position of the caret. More...
 
void SetSelectionStart (int pos)
 Sets the position that starts the selection - this becomes the anchor. More...
 
int GetSelectionStart () const
 Returns the position at the start of the selection. More...
 
void SetSelectionEnd (int pos)
 Sets the position that ends the selection - this becomes the currentPosition. More...
 
int GetSelectionEnd () const
 Returns the position at the end of the selection. More...
 
void SetEmptySelection (int pos)
 Set caret to a position, while removing any existing selection. More...
 
void SetPrintMagnification (int magnification)
 Sets the print magnification added to the point size of each style for printing. More...
 
int GetPrintMagnification () const
 Returns the print magnification. More...
 
void SetPrintColourMode (int mode)
 Modify colours when printing for clearer printed text. More...
 
int GetPrintColourMode () const
 Returns the print colour mode. More...
 
int FindText (int minPos, int maxPos, const wxString &text, int flags=0)
 Find some text in the document. More...
 
int FormatRange (bool doDraw, int startPos, int endPos, wxDC *draw, wxDC *target, wxRect renderRect, wxRect pageRect)
 On Windows, will draw the document into a display context such as a printer. More...
 
int GetFirstVisibleLine () const
 Retrieve the display line at the top of the display. More...
 
wxString GetLine (int line) const
 Retrieve the contents of a line. More...
 
int GetLineCount () const
 Returns the number of lines in the document. More...
 
void SetMarginLeft (int pixelWidth)
 Sets the size in pixels of the left margin. More...
 
int GetMarginLeft () const
 Returns the size in pixels of the left margin. More...
 
void SetMarginRight (int pixelWidth)
 Sets the size in pixels of the right margin. More...
 
int GetMarginRight () const
 Returns the size in pixels of the right margin. More...
 
bool GetModify () const
 Is the document different from when it was last saved? More...
 
wxString GetSelectedText ()
 Retrieve the selected text. More...
 
wxString GetTextRange (int startPos, int endPos)
 Retrieve a range of text. More...
 
void HideSelection (bool normal)
 Draw the selection in normal style or with selection highlighted. More...
 
int LineFromPosition (int pos) const
 Retrieve the line containing a position. More...
 
int PositionFromLine (int line) const
 Retrieve the position at the start of a line. More...
 
void LineScroll (int columns, int lines)
 Scroll horizontally and vertically. More...
 
void EnsureCaretVisible ()
 Ensure the caret is visible. More...
 
void ReplaceSelection (const wxString &text)
 Replace the selected text with the argument text. More...
 
void SetReadOnly (bool readOnly)
 Set to read only or read write. More...
 
bool CanPaste () const
 Will a paste succeed? More...
 
bool CanUndo () const
 Are there any undoable actions in the undo history? More...
 
void EmptyUndoBuffer ()
 Delete the undo history. More...
 
void Undo ()
 Undo one action in the undo history. More...
 
void Cut ()
 Cut the selection to the clipboard. More...
 
void Copy ()
 Copy the selection to the clipboard. More...
 
void Paste ()
 Paste the contents of the clipboard into the document replacing the selection. More...
 
void Clear ()
 Clear the selection. More...
 
void SetText (const wxString &text)
 Replace the contents of the document with the argument text. More...
 
wxString GetText () const
 Retrieve all the text in the document. More...
 
int GetTextLength () const
 Retrieve the number of characters in the document. More...
 
void SetOvertype (bool overtype)
 Set to overtype (true) or insert mode. More...
 
bool GetOvertype () const
 Returns true if overtype mode is active otherwise false is returned. More...
 
void SetCaretWidth (int pixelWidth)
 Set the width of the insert mode caret. More...
 
int GetCaretWidth () const
 Returns the width of the insert mode caret. More...
 
void SetTargetStart (int pos)
 Sets the position that starts the target which is used for updating the document without affecting the scroll position. More...
 
int GetTargetStart () const
 Get the position that starts the target. More...
 
void SetTargetEnd (int pos)
 Sets the position that ends the target which is used for updating the document without affecting the scroll position. More...
 
int GetTargetEnd () const
 Get the position that ends the target. More...
 
int ReplaceTarget (const wxString &text)
 Replace the target text with the argument text. More...
 
int ReplaceTargetRE (const wxString &text)
 Replace the target text with the argument text after \d processing. More...
 
int SearchInTarget (const wxString &text)
 Search for a counted string in the target and set the target to the found range. More...
 
void SetSearchFlags (int flags)
 Set the search flags used by SearchInTarget. More...
 
int GetSearchFlags () const
 Get the search flags used by SearchInTarget. More...
 
void CallTipShow (int pos, const wxString &definition)
 Show a call tip containing a definition near position pos. More...
 
void CallTipCancel ()
 Remove the call tip from the screen. More...
 
bool CallTipActive ()
 Is there an active call tip? More...
 
int CallTipPosAtStart ()
 Retrieve the position where the caret was before displaying the call tip. More...
 
void CallTipSetHighlight (int start, int end)
 Highlight a segment of the definition. More...
 
void CallTipSetBackground (const wxColour &back)
 Set the background colour for the call tip. More...
 
void CallTipSetForeground (const wxColour &fore)
 Set the foreground colour for the call tip. More...
 
void CallTipSetForegroundHighlight (const wxColour &fore)
 Set the foreground colour for the highlighted part of the call tip. More...
 
void CallTipUseStyle (int tabSize)
 Enable use of STYLE_CALLTIP and set call tip tab size in pixels. More...
 
void CallTipSetPosition (bool above)
 Set position of calltip, above or below text. More...
 
int VisibleFromDocLine (int line)
 Find the display line of a document line taking hidden lines into account. More...
 
int DocLineFromVisible (int lineDisplay)
 Find the document line of a display line taking hidden lines into account. More...
 
int WrapCount (int line)
 The number of display lines needed to wrap a document line. More...
 
void SetFoldLevel (int line, int level)
 Set the fold level of a line. More...
 
int GetFoldLevel (int line) const
 Retrieve the fold level of a line. More...
 
int GetLastChild (int line, int level) const
 Find the last child line of a header line. More...
 
int GetFoldParent (int line) const
 Find the parent line of a child line. More...
 
void ShowLines (int lineStart, int lineEnd)
 Make a range of lines visible. More...
 
void HideLines (int lineStart, int lineEnd)
 Make a range of lines invisible. More...
 
bool GetLineVisible (int line) const
 Is a line visible? More...
 
bool GetAllLinesVisible () const
 Are all lines visible? More...
 
void SetFoldExpanded (int line, bool expanded)
 Show the children of a header line. More...
 
bool GetFoldExpanded (int line) const
 Is a header line expanded? More...
 
void ToggleFold (int line)
 Switch a header line between expanded and contracted. More...
 
void EnsureVisible (int line)
 Ensure a particular line is visible by expanding any header line hiding it. More...
 
void SetFoldFlags (int flags)
 Set some style options for folding. More...
 
void EnsureVisibleEnforcePolicy (int line)
 Ensure a particular line is visible by expanding any header line hiding it. More...
 
void SetTabIndents (bool tabIndents)
 Sets whether a tab pressed when caret is within indentation indents. More...
 
bool GetTabIndents () const
 Does a tab pressed when caret is within indentation indent? More...
 
void SetBackSpaceUnIndents (bool bsUnIndents)
 Sets whether a backspace pressed when caret is within indentation unindents. More...
 
bool GetBackSpaceUnIndents () const
 Does a backspace pressed when caret is within indentation unindent? More...
 
void SetMouseDwellTime (int periodMilliseconds)
 Sets the time the mouse must sit still to generate a mouse dwell event. More...
 
int GetMouseDwellTime () const
 Retrieve the time the mouse must sit still to generate a mouse dwell event. More...
 
int WordStartPosition (int pos, bool onlyWordCharacters)
 Get position of start of word. More...
 
int WordEndPosition (int pos, bool onlyWordCharacters)
 Get position of end of word. More...
 
void SetWrapMode (int mode)
 Sets whether text is word wrapped. More...
 
int GetWrapMode () const
 Retrieve whether text is word wrapped. More...
 
void SetWrapVisualFlags (int wrapVisualFlags)
 Set the display mode of visual flags for wrapped lines. More...
 
int GetWrapVisualFlags () const
 Retrive the display mode of visual flags for wrapped lines. More...
 
void SetWrapVisualFlagsLocation (int wrapVisualFlagsLocation)
 Set the location of visual flags for wrapped lines. More...
 
int GetWrapVisualFlagsLocation () const
 Retrive the location of visual flags for wrapped lines. More...
 
void SetWrapStartIndent (int indent)
 Set the start indent for wrapped lines. More...
 
int GetWrapStartIndent () const
 Retrive the start indent for wrapped lines. More...
 
void SetWrapIndentMode (int mode)
 Sets how wrapped sublines are placed. More...
 
int GetWrapIndentMode () const
 Retrieve how wrapped sublines are placed. More...
 
void SetLayoutCache (int mode)
 Sets the degree of caching of layout information. More...
 
int GetLayoutCache () const
 Retrieve the degree of caching of layout information. More...
 
void SetScrollWidth (int pixelWidth)
 Sets the document width assumed for scrolling. More...
 
int GetScrollWidth () const
 Retrieve the document width assumed for scrolling. More...
 
void SetScrollWidthTracking (bool tracking)
 Sets whether the maximum width line displayed is used to set scroll width. More...
 
bool GetScrollWidthTracking () const
 Retrieve whether the scroll width tracks wide lines. More...
 
int TextWidth (int style, const wxString &text)
 Measure the pixel width of some text in a particular style. More...
 
void SetEndAtLastLine (bool endAtLastLine)
 Sets the scroll range so that maximum scroll position has the last line at the bottom of the view (default). More...
 
bool GetEndAtLastLine () const
 Retrieve whether the maximum scroll position has the last line at the bottom of the view. More...
 
int TextHeight (int line)
 Retrieve the height of a particular line of text in pixels. More...
 
void SetUseVerticalScrollBar (bool show)
 Show or hide the vertical scroll bar. More...
 
bool GetUseVerticalScrollBar () const
 Is the vertical scroll bar visible? More...
 
void AppendText (const wxString &text)
 Append a string to the end of the document without changing the selection. More...
 
bool GetTwoPhaseDraw () const
 Is drawing done in two phases with backgrounds drawn before foregrounds? More...
 
void SetTwoPhaseDraw (bool twoPhase)
 In twoPhaseDraw mode, drawing is performed in two phases, first the background and then the foreground. More...
 
void SetFirstVisibleLine (int lineDisplay)
 Scroll so that a display line is at the top of the display. More...
 
void SetMultiPaste (int multiPaste)
 Change the effect of pasting when there are multiple selections. More...
 
int GetMultiPaste () const
 Retrieve the effect of pasting when there are multiple selections. More...
 
wxString GetTag (int tagNumber) const
 Retrieve the value of a tag from a regular expression search. More...
 
void TargetFromSelection ()
 Make the target range start and end be the same as the selection range start and end. More...
 
void LinesJoin ()
 Join the lines in the target. More...
 
void LinesSplit (int pixelWidth)
 Split the lines in the target into lines that are less wide than pixelWidth where possible. More...
 
void SetFoldMarginColour (bool useSetting, const wxColour &back)
 Set the colours used as a chequerboard pattern in the fold margin. More...
 
void SetFoldMarginHiColour (bool useSetting, const wxColour &fore)
 
void LineDown ()
 Move caret down one line. More...
 
void LineDownExtend ()
 Move caret down one line extending selection to new caret position. More...
 
void LineUp ()
 Move caret up one line. More...
 
void LineUpExtend ()
 Move caret up one line extending selection to new caret position. More...
 
void CharLeft ()
 Move caret left one character. More...
 
void CharLeftExtend ()
 Move caret left one character extending selection to new caret position. More...
 
void CharRight ()
 Move caret right one character. More...
 
void CharRightExtend ()
 Move caret right one character extending selection to new caret position. More...
 
void WordLeft ()
 Move caret left one word. More...
 
void WordLeftExtend ()
 Move caret left one word extending selection to new caret position. More...
 
void WordRight ()
 Move caret right one word. More...
 
void WordRightExtend ()
 Move caret right one word extending selection to new caret position. More...
 
void Home ()
 Move caret to first position on line. More...
 
void HomeExtend ()
 Move caret to first position on line extending selection to new caret position. More...
 
void LineEnd ()
 Move caret to last position on line. More...
 
void LineEndExtend ()
 Move caret to last position on line extending selection to new caret position. More...
 
void DocumentStart ()
 Move caret to first position in document. More...
 
void DocumentStartExtend ()
 Move caret to first position in document extending selection to new caret position. More...
 
void DocumentEnd ()
 Move caret to last position in document. More...
 
void DocumentEndExtend ()
 Move caret to last position in document extending selection to new caret position. More...
 
void PageUp ()
 Move caret one page up. More...
 
void PageUpExtend ()
 Move caret one page up extending selection to new caret position. More...
 
void PageDown ()
 Move caret one page down. More...
 
void PageDownExtend ()
 Move caret one page down extending selection to new caret position. More...
 
void EditToggleOvertype ()
 Switch from insert to overtype mode or the reverse. More...
 
void Cancel ()
 Cancel any modes such as call tip or auto-completion list display. More...
 
void DeleteBack ()
 Delete the selection or if no selection, the character before the caret. More...
 
void Tab ()
 If selection is empty or all on one line replace the selection with a tab character. More...
 
void BackTab ()
 Dedent the selected lines. More...
 
void NewLine ()
 Insert a new line, may use a CRLF, CR or LF depending on EOL mode. More...
 
void FormFeed ()
 Insert a Form Feed character. More...
 
void VCHome ()
 Move caret to before first visible character on line. More...
 
void VCHomeExtend ()
 Like VCHome but extending selection to new caret position. More...
 
void ZoomIn ()
 Magnify the displayed text by increasing the sizes by 1 point. More...
 
void ZoomOut ()
 Make the displayed text smaller by decreasing the sizes by 1 point. More...
 
void DelWordLeft ()
 Delete the word to the left of the caret. More...
 
void DelWordRight ()
 Delete the word to the right of the caret. More...
 
void DelWordRightEnd ()
 Delete the word to the right of the caret, but not the trailing non-word characters. More...
 
void LineCut ()
 Cut the line containing the caret. More...
 
void LineDelete ()
 Delete the line containing the caret. More...
 
void LineTranspose ()
 Switch the current line with the previous. More...
 
void LineDuplicate ()
 Duplicate the current line. More...
 
void LowerCase ()
 Transform the selection to lower case. More...
 
void UpperCase ()
 Transform the selection to upper case. More...
 
void LineScrollDown ()
 Scroll the document down, keeping the caret visible. More...
 
void LineScrollUp ()
 Scroll the document up, keeping the caret visible. More...
 
void DeleteBackNotLine ()
 Delete the selection or if no selection, the character before the caret. More...
 
void HomeDisplay ()
 Move caret to first position on display line. More...
 
void HomeDisplayExtend ()
 Move caret to first position on display line extending selection to new caret position. More...
 
void LineEndDisplay ()
 Move caret to last position on display line. More...
 
void LineEndDisplayExtend ()
 Move caret to last position on display line extending selection to new caret position. More...
 
void HomeWrap ()
 These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? except they behave differently when word-wrap is enabled: They go first to the start / end of the display line, like (Home|LineEnd)Display The difference is that, the cursor is already at the point, it goes on to the start or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. More...
 
void HomeWrapExtend ()
 
void LineEndWrap ()
 
void LineEndWrapExtend ()
 
void VCHomeWrap ()
 
void VCHomeWrapExtend ()
 
void LineCopy ()
 Copy the line containing the caret. More...
 
void MoveCaretInsideView ()
 Move the caret inside current view if it's not there already. More...
 
int LineLength (int line) const
 How many characters are on a line, including end of line characters? More...
 
void BraceHighlight (int pos1, int pos2)
 Highlight the characters at two positions. More...
 
void BraceHighlightIndicator (bool useBraceHighlightIndicator, int indicator)
 Use specified indicator to highlight matching braces instead of changing their style. More...
 
void BraceBadLight (int pos)
 Highlight the character at a position indicating there is no matching brace. More...
 
void BraceBadLightIndicator (bool useBraceBadLightIndicator, int indicator)
 Use specified indicator to highlight non matching brace instead of changing its style. More...
 
int BraceMatch (int pos)
 Find the position of a matching brace or INVALID_POSITION if no match. More...
 
bool GetViewEOL () const
 Are the end of line characters visible? More...
 
void SetViewEOL (bool visible)
 Make the end of line characters visible or invisible. More...
 
void * GetDocPointer ()
 Retrieve a pointer to the document object. More...
 
void SetDocPointer (void *docPointer)
 Change the document object used. More...
 
void SetModEventMask (int mask)
 Set which document modification events are sent to the container. More...
 
int GetEdgeColumn () const
 Retrieve the column number which text should be kept within. More...
 
void SetEdgeColumn (int column)
 Set the column number of the edge. More...
 
int GetEdgeMode () const
 Retrieve the edge highlight mode. More...
 
void SetEdgeMode (int mode)
 The edge may be displayed by a line (EDGE_LINE) or by highlighting text that goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE). More...
 
wxColour GetEdgeColour () const
 Retrieve the colour used in edge indication. More...
 
void SetEdgeColour (const wxColour &edgeColour)
 Change the colour used in edge indication. More...
 
void SearchAnchor ()
 Sets the current caret position to be the search anchor. More...
 
int SearchNext (int flags, const wxString &text)
 Find some text starting at the search anchor. More...
 
int SearchPrev (int flags, const wxString &text)
 Find some text starting at the search anchor and moving backwards. More...
 
int LinesOnScreen () const
 Retrieves the number of lines completely visible. More...
 
void UsePopUp (bool allowPopUp)
 Set whether a pop up menu is displayed automatically when the user presses the wrong mouse button. More...
 
bool SelectionIsRectangle () const
 Is the selection rectangular? The alternative is the more common stream selection. More...
 
void SetZoom (int zoom)
 Set the zoom level. More...
 
int GetZoom () const
 Retrieve the zoom level. More...
 
void * CreateDocument ()
 Create a new document object. More...
 
void AddRefDocument (void *docPointer)
 Extend life of document. More...
 
void ReleaseDocument (void *docPointer)
 Release a reference to the document, deleting document if it fades to black. More...
 
int GetModEventMask () const
 Get which document modification events are sent to the container. More...
 
void SetSTCFocus (bool focus)
 Change internal focus flag. More...
 
bool GetSTCFocus () const
 Get internal focus flag. More...
 
void SetStatus (int statusCode)
 Change error status - 0 = OK. More...
 
int GetStatus () const
 Get error status. More...
 
void SetMouseDownCaptures (bool captures)
 Set whether the mouse is captured when its button is pressed. More...
 
bool GetMouseDownCaptures () const
 Get whether mouse gets captured. More...
 
void SetSTCCursor (int cursorType)
 Sets the cursor to one of the SC_CURSOR* values. More...
 
int GetSTCCursor () const
 Get cursor type. More...
 
void SetControlCharSymbol (int symbol)
 Change the way control characters are displayed: If symbol is < 32, keep the drawn way, else, use the given character. More...
 
int GetControlCharSymbol () const
 Get the way control characters are displayed. More...
 
void WordPartLeft ()
 Move to the previous change in capitalisation. More...
 
void WordPartLeftExtend ()
 Move to the previous change in capitalisation extending selection to new caret position. More...
 
void WordPartRight ()
 Move to the change next in capitalisation. More...
 
void WordPartRightExtend ()
 Move to the next change in capitalisation extending selection to new caret position. More...
 
void SetVisiblePolicy (int visiblePolicy, int visibleSlop)
 Set the way the display area is determined when a particular line is to be moved to by Find, FindNext, GotoLine, etc. More...
 
void DelLineLeft ()
 Delete back from the current position to the start of the line. More...
 
void DelLineRight ()
 Delete forwards from the current position to the end of the line. More...
 
void SetXOffset (int newOffset)
 Get and Set the xOffset (ie, horizontal scroll position). More...
 
int GetXOffset () const
 
void ChooseCaretX ()
 Set the last x chosen value to be the caret x position. More...
 
void SetXCaretPolicy (int caretPolicy, int caretSlop)
 Set the way the caret is kept visible when going sideways. More...
 
void SetYCaretPolicy (int caretPolicy, int caretSlop)
 Set the way the line the caret is on is kept visible. More...
 
void SetPrintWrapMode (int mode)
 Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE). More...
 
int GetPrintWrapMode () const
 Is printing line wrapped? More...
 
void SetHotspotActiveForeground (bool useSetting, const wxColour &fore)
 Set a fore colour for active hotspots. More...
 
wxColour GetHotspotActiveForeground () const
 Get the fore colour for active hotspots. More...
 
void SetHotspotActiveBackground (bool useSetting, const wxColour &back)
 Set a back colour for active hotspots. More...
 
wxColour GetHotspotActiveBackground () const
 Get the back colour for active hotspots. More...
 
void SetHotspotActiveUnderline (bool underline)
 Enable / Disable underlining active hotspots. More...
 
bool GetHotspotActiveUnderline () const
 Get whether underlining for active hotspots. More...
 
void SetHotspotSingleLine (bool singleLine)
 Limit hotspots to single line so hotspots on two lines don't merge. More...
 
bool GetHotspotSingleLine () const
 Get the HotspotSingleLine property. More...
 
void ParaDown ()
 Move caret between paragraphs (delimited by empty lines). More...
 
void ParaDownExtend ()
 
void ParaUp ()
 
void ParaUpExtend ()
 
int PositionBefore (int pos)
 Given a valid document position, return the previous position taking code page into account. More...
 
int PositionAfter (int pos)
 Given a valid document position, return the next position taking code page into account. More...
 
void CopyRange (int start, int end)
 Copy a range of text to the clipboard. More...
 
void CopyText (int length, const wxString &text)
 Copy argument text to the clipboard. More...
 
void SetSelectionMode (int mode)
 Set the selection mode to stream (SC_SEL_STREAM) or rectangular (SC_SEL_RECTANGLE/SC_SEL_THIN) or by lines (SC_SEL_LINES). More...
 
int GetSelectionMode () const
 Get the mode of the current selection. More...
 
int GetLineSelStartPosition (int line)
 Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line). More...
 
int GetLineSelEndPosition (int line)
 Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line). More...
 
void LineDownRectExtend ()
 Move caret down one line, extending rectangular selection to new caret position. More...
 
void LineUpRectExtend ()
 Move caret up one line, extending rectangular selection to new caret position. More...
 
void CharLeftRectExtend ()
 Move caret left one character, extending rectangular selection to new caret position. More...
 
void CharRightRectExtend ()
 Move caret right one character, extending rectangular selection to new caret position. More...
 
void HomeRectExtend ()
 Move caret to first position on line, extending rectangular selection to new caret position. More...
 
void VCHomeRectExtend ()
 Move caret to before first visible character on line. More...
 
void LineEndRectExtend ()
 Move caret to last position on line, extending rectangular selection to new caret position. More...
 
void PageUpRectExtend ()
 Move caret one page up, extending rectangular selection to new caret position. More...
 
void PageDownRectExtend ()
 Move caret one page down, extending rectangular selection to new caret position. More...
 
void StutteredPageUp ()
 Move caret to top of page, or one page up if already at top of page. More...
 
void StutteredPageUpExtend ()
 Move caret to top of page, or one page up if already at top of page, extending selection to new caret position. More...
 
void StutteredPageDown ()
 Move caret to bottom of page, or one page down if already at bottom of page. More...
 
void StutteredPageDownExtend ()
 Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position. More...
 
void WordLeftEnd ()
 Move caret left one word, position cursor at end of word. More...
 
void WordLeftEndExtend ()
 Move caret left one word, position cursor at end of word, extending selection to new caret position. More...
 
void WordRightEnd ()
 Move caret right one word, position cursor at end of word. More...
 
void WordRightEndExtend ()
 Move caret right one word, position cursor at end of word, extending selection to new caret position. More...
 
void SetWhitespaceChars (const wxString &characters)
 Set the set of characters making up whitespace for when moving or selecting by word. More...
 
wxString GetWhitespaceChars () const
 Get the set of characters making up whitespace for when moving or selecting by word. More...
 
void SetPunctuationChars (const wxString &characters)
 Set the set of characters making up punctuation characters Should be called after SetWordChars. More...
 
wxString GetPunctuationChars () const
 Get the set of characters making up punctuation characters. More...
 
void SetCharsDefault ()
 Reset the set of characters for whitespace and word characters to the defaults. More...
 
int AutoCompGetCurrent () const
 Get currently selected item position in the auto-completion list. More...
 
void AutoCompSetCaseInsensitiveBehaviour (int behaviour)
 Set auto-completion case insensitive behaviour to either prefer case-sensitive matches or have no preference. More...
 
int AutoCompGetCaseInsensitiveBehaviour () const
 Get auto-completion case insensitive behaviour. More...
 
void Allocate (int bytes)
 Enlarge the document to a particular size of text bytes. More...
 
int FindColumn (int line, int column)
 Find the position of a column on a line taking into account tabs and multi-byte characters. More...
 
int GetCaretSticky () const
 Can the caret preferred x position only be changed by explicit movement commands? More...
 
void SetCaretSticky (int useCaretStickyBehaviour)
 Stop the caret preferred x position changing when the user types. More...
 
void ToggleCaretSticky ()
 Switch between sticky and non-sticky: meant to be bound to a key. More...
 
void SetPasteConvertEndings (bool convert)
 Enable/Disable convert-on-paste for line endings. More...
 
bool GetPasteConvertEndings () const
 Get convert-on-paste setting. More...
 
void SelectionDuplicate ()
 Duplicate the selection. More...
 
void SetCaretLineBackAlpha (int alpha)
 Set background alpha of the caret line. More...
 
int GetCaretLineBackAlpha () const
 Get the background alpha of the caret line. More...
 
void SetCaretStyle (int caretStyle)
 Set the style of the caret to be drawn. More...
 
int GetCaretStyle () const
 Returns the current style of the caret. More...
 
void SetIndicatorCurrent (int indicator)
 Set the indicator used for IndicatorFillRange and IndicatorClearRange. More...
 
int GetIndicatorCurrent () const
 Get the current indicator. More...
 
void SetIndicatorValue (int value)
 Set the value used for IndicatorFillRange. More...
 
int GetIndicatorValue () const
 Get the current indicator value. More...
 
void IndicatorFillRange (int position, int fillLength)
 Turn a indicator on over a range. More...
 
void IndicatorClearRange (int position, int clearLength)
 Turn a indicator off over a range. More...
 
int IndicatorAllOnFor (int position)
 Are any indicators present at position? More...
 
int IndicatorValueAt (int indicator, int position)
 What value does a particular indicator have at at a position? More...
 
int IndicatorStart (int indicator, int position)
 Where does a particular indicator start? More...
 
int IndicatorEnd (int indicator, int position)
 Where does a particular indicator end? More...
 
void SetPositionCacheSize (int size)
 Set number of entries in position cache. More...
 
int GetPositionCacheSize () const
 How many entries are allocated to the position cache? More...
 
void CopyAllowLine ()
 Copy the selection, if selection empty copy the line with the caret. More...
 
const char * GetCharacterPointer () const
 Compact the document buffer and return a read-only pointer to the characters in the document. More...
 
const char * GetRangePointer (int position, int rangeLength) const
 Return a read-only pointer to a range of characters in the document. More...
 
int GetGapPosition () const
 Return a position which, to avoid performance costs, should not be within the range of a call to GetRangePointer. More...
 
void SetKeysUnicode (bool keysUnicode)
 Always interpret keyboard input as Unicode. More...
 
bool GetKeysUnicode () const
 Are keys always interpreted as Unicode? More...
 
void IndicatorSetAlpha (int indicator, int alpha)
 Set the alpha fill colour of the given indicator. More...
 
int IndicatorGetAlpha (int indicator) const
 Get the alpha fill colour of the given indicator. More...
 
void IndicatorSetOutlineAlpha (int indicator, int alpha)
 Set the alpha outline colour of the given indicator. More...
 
int IndicatorGetOutlineAlpha (int indicator) const
 Get the alpha outline colour of the given indicator. More...
 
void SetExtraAscent (int extraAscent)
 Set extra ascent for each line. More...
 
int GetExtraAscent () const
 Get extra ascent for each line. More...
 
void SetExtraDescent (int extraDescent)
 Set extra descent for each line. More...
 
int GetExtraDescent () const
 Get extra descent for each line. More...
 
int GetMarkerSymbolDefined (int markerNumber)
 Which symbol was defined for markerNumber with MarkerDefine. More...
 
void MarginSetText (int line, const wxString &text)
 Set the text in the text margin for a line. More...
 
wxString MarginGetText (int line) const
 Get the text in the text margin for a line. More...
 
void MarginSetStyle (int line, int style)
 Set the style number for the text margin for a line. More...
 
int MarginGetStyle (int line) const
 Get the style number for the text margin for a line. More...
 
void MarginSetStyles (int line, const wxString &styles)
 Set the style in the text margin for a line. More...
 
wxString MarginGetStyles (int line) const
 Get the styles in the text margin for a line. More...
 
void MarginTextClearAll ()
 Clear the margin text on all lines. More...
 
void MarginSetStyleOffset (int style)
 Get the start of the range of style numbers used for margin text. More...
 
int MarginGetStyleOffset () const
 Get the start of the range of style numbers used for margin text. More...
 
void SetMarginOptions (int marginOptions)
 Set the margin options. More...
 
int GetMarginOptions () const
 Get the margin options. More...
 
void AnnotationSetText (int line, const wxString &text)
 Set the annotation text for a line. More...
 
wxString AnnotationGetText (int line) const
 Get the annotation text for a line. More...
 
void AnnotationSetStyle (int line, int style)
 Set the style number for the annotations for a line. More...
 
int AnnotationGetStyle (int line) const
 Get the style number for the annotations for a line. More...
 
void AnnotationSetStyles (int line, const wxString &styles)
 Set the annotation styles for a line. More...
 
wxString AnnotationGetStyles (int line) const
 Get the annotation styles for a line. More...
 
int AnnotationGetLines (int line) const
 Get the number of annotation lines for a line. More...
 
void AnnotationClearAll ()
 Clear the annotations from all lines. More...
 
void AnnotationSetVisible (int visible)
 Set the visibility for the annotations for a view. More...
 
int AnnotationGetVisible () const
 Get the visibility for the annotations for a view. More...
 
void AnnotationSetStyleOffset (int style)
 Get the start of the range of style numbers used for annotations. More...
 
int AnnotationGetStyleOffset () const
 Get the start of the range of style numbers used for annotations. More...
 
void AddUndoAction (int token, int flags)
 Add a container action to the undo stack. More...
 
int CharPositionFromPoint (int x, int y)
 Find the position of a character from a point within the window. More...
 
int CharPositionFromPointClose (int x, int y)
 Find the position of a character from a point within the window. More...
 
void SetMultipleSelection (bool multipleSelection)
 Set whether multiple selections can be made. More...
 
bool GetMultipleSelection () const
 Whether multiple selections can be made. More...
 
void SetAdditionalSelectionTyping (bool additionalSelectionTyping)
 Set whether typing can be performed into multiple selections. More...
 
bool GetAdditionalSelectionTyping () const
 Whether typing can be performed into multiple selections. More...
 
void SetAdditionalCaretsBlink (bool additionalCaretsBlink)
 Set whether additional carets will blink. More...
 
bool GetAdditionalCaretsBlink () const
 Whether additional carets will blink. More...
 
void SetAdditionalCaretsVisible (bool additionalCaretsBlink)
 Set whether additional carets are visible. More...
 
bool GetAdditionalCaretsVisible () const
 Whether additional carets are visible. More...
 
int GetSelections () const
 How many selections are there? More...
 
void ClearSelections ()
 Clear selections to a single empty stream selection. More...
 
int AddSelection (int caret, int anchor)
 Add a selection. More...
 
void SetMainSelection (int selection)
 Set the main selection. More...
 
int GetMainSelection () const
 Which selection is the main selection. More...
 
void SetSelectionNCaret (int selection, int pos)
 
int GetSelectionNCaret (int selection) const
 
void SetSelectionNAnchor (int selection, int posAnchor)
 
int GetSelectionNAnchor (int selection) const
 
void SetSelectionNCaretVirtualSpace (int selection, int space)
 
int GetSelectionNCaretVirtualSpace (int selection) const
 
void SetSelectionNAnchorVirtualSpace (int selection, int space)
 
int GetSelectionNAnchorVirtualSpace (int selection) const
 
void SetSelectionNStart (int selection, int pos)
 Sets the position that starts the selection - this becomes the anchor. More...
 
int GetSelectionNStart (int selection) const
 Returns the position at the start of the selection. More...
 
void SetSelectionNEnd (int selection, int pos)
 Sets the position that ends the selection - this becomes the currentPosition. More...
 
int GetSelectionNEnd (int selection) const
 Returns the position at the end of the selection. More...
 
void SetRectangularSelectionCaret (int pos)
 
int GetRectangularSelectionCaret () const
 
void SetRectangularSelectionAnchor (int posAnchor)
 
int GetRectangularSelectionAnchor () const
 
void SetRectangularSelectionCaretVirtualSpace (int space)
 
int GetRectangularSelectionCaretVirtualSpace () const
 
void SetRectangularSelectionAnchorVirtualSpace (int space)
 
int GetRectangularSelectionAnchorVirtualSpace () const
 
void SetVirtualSpaceOptions (int virtualSpaceOptions)
 
int GetVirtualSpaceOptions () const
 
void SetRectangularSelectionModifier (int modifier)
 On GTK+, allow selecting the modifier key to use for mouse-based rectangular selection. More...
 
int GetRectangularSelectionModifier () const
 Get the modifier key used for rectangular selection. More...
 
void SetAdditionalSelForeground (const wxColour &fore)
 Set the foreground colour of additional selections. More...
 
void SetAdditionalSelBackground (const wxColour &back)
 Set the background colour of additional selections. More...
 
void SetAdditionalSelAlpha (int alpha)
 Set the alpha of the selection. More...
 
int GetAdditionalSelAlpha () const
 Get the alpha of the selection. More...
 
void SetAdditionalCaretForeground (const wxColour &fore)
 Set the foreground colour of additional carets. More...
 
wxColour GetAdditionalCaretForeground () const
 Get the foreground colour of additional carets. More...
 
void RotateSelection ()
 Set the main selection to the next selection. More...
 
void SwapMainAnchorCaret ()
 Swap that caret and anchor of the main selection. More...
 
int ChangeLexerState (int start, int end)
 Indicate that the internal state of a lexer has changed over a range and therefore there may be a need to redraw. More...
 
int ContractedFoldNext (int lineStart)
 Find the next line at or after lineStart that is a contracted fold header line. More...
 
void VerticalCentreCaret ()
 Centre current line in window. More...
 
void MoveSelectedLinesUp ()
 Move the selected lines up one line, shifting the line above after the selection. More...
 
void MoveSelectedLinesDown ()
 Move the selected lines down one line, shifting the line below before the selection. More...
 
void SetIdentifier (int identifier)
 Set the identifier reported as idFrom in notification messages. More...
 
int GetIdentifier () const
 Get the identifier. More...
 
void RGBAImageSetWidth (int width)
 Set the width for future RGBA image data. More...
 
void RGBAImageSetHeight (int height)
 Set the height for future RGBA image data. More...
 
void MarkerDefineRGBAImage (int markerNumber, const unsigned char *pixels)
 Define a marker from RGBA data. More...
 
void RegisterRGBAImage (int type, const unsigned char *pixels)
 Register an RGBA image for use in autocompletion lists. More...
 
void ScrollToStart ()
 Scroll to start of document. More...
 
void ScrollToEnd ()
 Scroll to end of document. More...
 
void SetTechnology (int technology)
 Set the technology used. More...
 
int GetTechnology () const
 Get the tech. More...
 
void * CreateLoader (int bytes) const
 Create an ILoader*. More...
 
void StartRecord ()
 Start notifying the container of all key presses and commands. More...
 
void StopRecord ()
 Stop notifying the container of all key presses and commands. More...
 
void SetLexer (int lexer)
 Set the lexing language of the document. More...
 
int GetLexer () const
 Retrieve the lexing language of the document. More...
 
void Colourise (int start, int end)
 Colourise a segment of the document using the current lexing language. More...
 
void SetProperty (const wxString &key, const wxString &value)
 Set up a value that may be used by a lexer for some optional feature. More...
 
void SetKeyWords (int keywordSet, const wxString &keyWords)
 Set up the key words used by the lexer. More...
 
void SetLexerLanguage (const wxString &language)
 Set the lexing language of the document based on string name. More...
 
wxString GetProperty (const wxString &key)
 Retrieve a 'property' value previously set with SetProperty. More...
 
wxString GetPropertyExpanded (const wxString &key)
 Retrieve a 'property' value previously set with SetProperty, with '$()' variable replacement on returned buffer. More...
 
int GetPropertyInt (const wxString &key) const
 Retrieve a 'property' value previously set with SetProperty, interpreted as an int AFTER any '$()' variable replacement. More...
 
int GetStyleBitsNeeded () const
 Retrieve the number of bits the current lexer needs for styling. More...
 
void * PrivateLexerCall (int operation, void *pointer)
 For private communication between an application and a known lexer. More...
 
wxString PropertyNames () const
 Retrieve a '
' separated list of properties understood by the current lexer. More...
 
int PropertyType (const wxString &name)
 Retrieve the type of a property. More...
 
wxString DescribeProperty (const wxString &name) const
 Describe a property. More...
 
wxString DescribeKeyWordSets () const
 Retrieve a '
' separated list of descriptions of the keyword sets understood by the current lexer. More...
 
int GetCurrentLine ()
 Returns the line number of the line with the caret. More...
 
void StyleSetSpec (int styleNum, const wxString &spec)
 Extract style settings from a spec-string which is composed of one or more of the following comma separated elements: More...
 
wxFont StyleGetFont (int style)
 Get the font of a style. More...
 
void StyleSetFont (int styleNum, wxFont &font)
 Set style size, face, bold, italic, and underline attributes from a wxFont's attributes. More...
 
void StyleSetFontAttr (int styleNum, int size, const wxString &faceName, bool bold, bool italic, bool underline, wxFontEncoding encoding=wxFONTENCODING_DEFAULT)
 Set all font style attributes at once. More...
 
void StyleSetCharacterSet (int style, int characterSet)
 Set the character set of the font in a style. More...
 
void StyleSetFontEncoding (int style, wxFontEncoding encoding)
 Set the font encoding to be used by a style. More...
 
void CmdKeyExecute (int cmd)
 Perform one of the operations defined by the wxSTC_CMD_* constants. More...
 
void SetMargins (int left, int right)
 Set the left and right margin in the edit area, measured in pixels. More...
 
wxPoint PointFromPosition (int pos)
 Retrieve the point in the window where a position is displayed. More...
 
void ScrollToLine (int line)
 Scroll enough to make the given line visible. More...
 
void ScrollToColumn (int column)
 Scroll enough to make the given column visible. More...
 
wxIntPtr SendMsg (int msg, wxUIntPtr wp=0, wxIntPtr lp=0) const
 Send a message to Scintilla. More...
 
void SetVScrollBar (wxScrollBar *bar)
 Set the vertical scrollbar to use instead of the ont that's built-in. More...
 
void SetHScrollBar (wxScrollBar *bar)
 Set the horizontal scrollbar to use instead of the ont that's built-in. More...
 
bool GetLastKeydownProcessed ()
 Can be used to prevent the EVT_CHAR handler from adding the char. More...
 
void SetLastKeydownProcessed (bool val)
 
bool SaveFile (const wxString &filename)
 Write the contents of the editor to filename. More...
 
bool LoadFile (const wxString &filename)
 Load the contents of filename into the editor. More...
 
wxDragResult DoDragOver (wxCoord x, wxCoord y, wxDragResult defaultRes)
 Allow for simulating a DnD DragOver. More...
 
bool DoDropText (long x, long y, const wxString &data)
 Allow for simulating a DnD DropText. More...
 
void AnnotationClearLine (int line)
 Clear annotations from the given line. More...
 
void AddTextRaw (const char *text, int length=-1)
 Add text to the document at current position. More...
 
void InsertTextRaw (int pos, const char *text)
 Insert string at a position. More...
 
wxCharBuffer GetCurLineRaw (int *linePos=NULL)
 Retrieve the text of the line containing the caret. More...
 
wxCharBuffer GetLineRaw (int line)
 Retrieve the contents of a line. More...
 
wxCharBuffer GetSelectedTextRaw ()
 Retrieve the selected text. More...
 
wxCharBuffer GetTextRangeRaw (int startPos, int endPos)
 Retrieve a range of text. More...
 
void SetTextRaw (const char *text)
 Replace the contents of the document with the argument text. More...
 
wxCharBuffer GetTextRaw ()
 Retrieve all the text in the document. More...
 
void AppendTextRaw (const char *text, int length=-1)
 Append a string to the end of the document without changing the selection. More...
 
virtual void WriteText (const wxString &text)
 Writes the text into the text control at the current insertion position. More...
 
virtual void Remove (long from, long to)
 Removes the text starting at the first given position up to (but not including) the character at the last position. More...
 
virtual void Replace (long from, long to, const wxString &text)
 Replaces the text starting at the first position up to (but not including) the character at the last position with the given text. More...
 
virtual void SetInsertionPoint (long pos)
 Sets the insertion point at the given position. More...
 
virtual long GetInsertionPoint () const
 Returns the insertion point, or cursor, position. More...
 
virtual long GetLastPosition () const
 Returns the zero based index of the last position in the text control, which is equal to the number of characters in the control. More...
 
virtual void SetSelection (long from, long to)
 Selects the text starting at the first position up to (but not including) the character at the last position. More...
 
virtual void SelectNone ()
 Deselects selected text in the control. More...
 
virtual void GetSelection (long *from, long *to) const
 Gets the current selection span. More...
 
virtual bool IsEditable () const
 Returns true if the controls contents may be edited by user (note that it always can be changed by the program). More...
 
virtual void SetEditable (bool editable)
 Makes the text item editable or read-only, overriding the wxTE_READONLY flag. More...
 
virtual int GetLineLength (long n) const
 
virtual wxString GetLineText (long n) const
 
virtual int GetNumberOfLines () const
 
virtual bool IsModified () const
 
virtual void MarkDirty ()
 
virtual void DiscardEdits ()
 
virtual bool SetStyle (long start, long end, const wxTextAttr &style)
 
virtual bool GetStyle (long position, wxTextAttr &style)
 
virtual bool SetDefaultStyle (const wxTextAttr &style)
 
virtual long XYToPosition (long x, long y) const
 
virtual bool PositionToXY (long pos, long *x, long *y) const
 
virtual void ShowPosition (long pos)
 
virtual wxTextCtrlHitTestResult HitTest (const wxPoint &pt, long *pos) const
 
virtual wxTextCtrlHitTestResult HitTest (const wxPoint &pt, wxTextCoord *col, wxTextCoord *row) const
 
- Public Member Functions inherited from wxControl
 wxControl (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxControlNameStr)
 Constructs a control. More...
 
 wxControl ()
 Default constructor to allow 2-phase creation. More...
 
bool Create (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxControlNameStr)
 
virtual void Command (wxCommandEvent &event)
 Simulates the effect of the user issuing a command to the item. More...
 
wxString GetLabel () const
 Returns the control's label, as it was passed to SetLabel(). More...
 
wxString GetLabelText () const
 Returns the control's label without mnemonics. More...
 
wxSize GetSizeFromTextSize (int xlen, int ylen=-1) const
 Determine the size needed by the control to leave the given area for its text. More...
 
wxSize GetSizeFromTextSize (const wxSize &tsize) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void SetLabel (const wxString &label)
 Sets the control's label. More...
 
void SetLabelText (const wxString &text)
 Sets the control's label to exactly the given string. More...
 
bool SetLabelMarkup (const wxString &markup)
 Sets the controls label to a string using markup. More...
 
- Public Member Functions inherited from wxWindow
 wxWindow ()
 Default constructor. More...
 
 wxWindow (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=wxPanelNameStr)
 Constructs a window, which can be a child of a frame, dialog or any other non-control window. More...
 
virtual ~wxWindow ()
 Destructor. More...
 
bool Create (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=wxPanelNameStr)
 
virtual bool AcceptsFocus () const
 This method may be overridden in the derived classes to return false to indicate that this control doesn't accept input at all (i.e. behaves like e.g. wxStaticText) and so doesn't need focus. More...
 
virtual bool AcceptsFocusFromKeyboard () const
 This method may be overridden in the derived classes to return false to indicate that while this control can, in principle, have focus if the user clicks it with the mouse, it shouldn't be included in the TAB traversal chain when using the keyboard. More...
 
virtual bool AcceptsFocusRecursively () const
 Overridden to indicate whether this window or one of its children accepts focus. More...
 
bool IsFocusable () const
 Can this window itself have focus? More...
 
bool CanAcceptFocus () const
 Can this window have focus right now? More...
 
bool CanAcceptFocusFromKeyboard () const
 Can this window be assigned focus from keyboard right now? More...
 
virtual bool HasFocus () const
 Returns true if the window (or in case of composite controls, its main child window) has focus. More...
 
virtual void SetCanFocus (bool canFocus)
 This method is only implemented by ports which have support for native TAB traversal (such as GTK+ 2.0). More...
 
virtual void SetFocus ()
 This sets the window to receive keyboard input. More...
 
virtual void SetFocusFromKbd ()
 This function is called by wxWidgets keyboard navigation code when the user gives the focus to this window from keyboard (e.g. More...
 
virtual void AddChild (wxWindow *child)
 Adds a child window. More...
 
bool DestroyChildren ()
 Destroys all children of a window. More...
 
wxWindowFindWindow (long id) const
 Find a child of this window, by id. More...
 
wxWindowFindWindow (const wxString &name) const
 Find a child of this window, by name. More...
 
wxWindowList & GetChildren ()
 Returns a reference to the list of the window's children. More...
 
const wxWindowList & GetChildren () const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
virtual void RemoveChild (wxWindow *child)
 Removes a child window. More...
 
wxWindowGetGrandParent () const
 Returns the grandparent of a window, or NULL if there isn't one. More...
 
wxWindowGetNextSibling () const
 Returns the next window after this one among the parent's children or NULL if this window is the last child. More...
 
wxWindowGetParent () const
 Returns the parent of the window, or NULL if there is no parent. More...
 
wxWindowGetPrevSibling () const
 Returns the previous window before this one among the parent's children or NULL if this window is the first child. More...
 
bool IsDescendant (wxWindowBase *win) const
 Check if the specified window is a descendant of this one. More...
 
virtual bool Reparent (wxWindow *newParent)
 Reparents the window, i.e. the window will be removed from its current parent window (e.g. More...
 
virtual void AlwaysShowScrollbars (bool hflag=true, bool vflag=true)
 Call this function to force one or both scrollbars to be always shown, even if the window is big enough to show its entire contents without scrolling. More...
 
virtual int GetScrollPos (int orientation) const
 Returns the built-in scrollbar position. More...
 
virtual int GetScrollRange (int orientation) const
 Returns the built-in scrollbar range. More...
 
virtual int GetScrollThumb (int orientation) const
 Returns the built-in scrollbar thumb size. More...
 
bool CanScroll (int orient) const
 Returns true if this window can have a scroll bar in this orientation. More...
 
bool HasScrollbar (int orient) const
 Returns true if this window currently has a scroll bar for this orientation. More...
 
virtual bool IsScrollbarAlwaysShown (int orient) const
 Return whether a scrollbar is always shown. More...
 
virtual bool ScrollLines (int lines)
 Scrolls the window by the given number of lines down (if lines is positive) or up. More...
 
virtual bool ScrollPages (int pages)
 Scrolls the window by the given number of pages down (if pages is positive) or up. More...
 
virtual void ScrollWindow (int dx, int dy, const wxRect *rect=NULL)
 Physically scrolls the pixels in the window and move child windows accordingly. More...
 
bool LineUp ()
 Same as ScrollLines (-1). More...
 
bool LineDown ()
 Same as ScrollLines (1). More...
 
bool PageUp ()
 Same as ScrollPages (-1). More...
 
bool PageDown ()
 Same as ScrollPages (1). More...
 
virtual void SetScrollPos (int orientation, int pos, bool refresh=true)
 Sets the position of one of the built-in scrollbars. More...
 
virtual void SetScrollbar (int orientation, int position, int thumbSize, int range, bool refresh=true)
 Sets the scrollbar properties of a built-in scrollbar. More...
 
bool BeginRepositioningChildren ()
 Prepare for changing positions of multiple child windows. More...
 
void EndRepositioningChildren ()
 Fix child window positions after setting all of them at once. More...
 
void CacheBestSize (const wxSize &size) const
 Sets the cached best size value. More...
 
virtual wxSize ClientToWindowSize (const wxSize &size) const
 Converts client area size size to corresponding window size. More...
 
virtual wxSize WindowToClientSize (const wxSize &size) const
 Converts window size size to corresponding client area size In other words, the returned value is what would GetClientSize() return if this window had given window size. More...
 
virtual void Fit ()
 Sizes the window so that it fits around its subwindows. More...
 
virtual void FitInside ()
 Similar to Fit(), but sizes the interior (virtual) size of a window. More...
 
wxSize GetBestSize () const
 This functions returns the best acceptable minimal size for the window. More...
 
int GetBestHeight (int width) const
 Returns the best height needed by this window if it had the given width. More...
 
int GetBestWidth (int height) const
 Returns the best width needed by this window if it had the given height. More...
 
void GetClientSize (int *width, int *height) const
 Returns the size of the window 'client area' in pixels. More...
 
wxSize GetClientSize () const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
virtual wxSize GetEffectiveMinSize () const
 Merges the window's best size into the min size and returns the result. More...
 
virtual wxSize GetMaxClientSize () const
 Returns the maximum size of window's client area. More...
 
virtual wxSize GetMaxSize () const
 Returns the maximum size of the window. More...
 
virtual wxSize GetMinClientSize () const
 Returns the minimum size of window's client area, an indication to the sizer layout mechanism that this is the minimum required size of its client area. More...
 
virtual wxSize GetMinSize () const
 Returns the minimum size of the window, an indication to the sizer layout mechanism that this is the minimum required size. More...
 
int GetMinWidth () const
 Returns the horizontal component of window minimal size. More...
 
int GetMinHeight () const
 Returns the vertical component of window minimal size. More...
 
int GetMaxWidth () const
 Returns the horizontal component of window maximal size. More...
 
int GetMaxHeight () const
 Returns the vertical component of window maximal size. More...
 
void GetSize (int *width, int *height) const
 Returns the size of the entire window in pixels, including title bar, border, scrollbars, etc. More...
 
wxSize GetSize () const
 See the GetSize(int*,int*) overload for more info. More...
 
wxSize GetVirtualSize () const
 This gets the virtual size of the window in pixels. More...
 
void GetVirtualSize (int *width, int *height) const
 Like the other GetVirtualSize() overload but uses pointers instead. More...
 
virtual wxSize GetBestVirtualSize () const
 Return the largest of ClientSize and BestSize (as determined by a sizer, interior children, or other means) More...
 
virtual double GetContentScaleFactor () const
 Returns the magnification of the backing store of this window, eg 2.0 for a window on a retina screen. More...
 
virtual wxSize GetWindowBorderSize () const
 Returns the size of the left/right and top/bottom borders of this window in x and y components of the result respectively. More...
 
virtual bool InformFirstDirection (int direction, int size, int availableOtherDir)
 wxSizer and friends use this to give a chance to a component to recalc its min size once one of the final size components is known. More...
 
void InvalidateBestSize ()
 Resets the cached best size value so it will be recalculated the next time it is needed. More...
 
void PostSizeEvent ()
 Posts a size event to the window. More...
 
void PostSizeEventToParent ()
 Posts a size event to the parent of this window. More...
 
virtual void SendSizeEvent (int flags=0)
 This function sends a dummy size event to the window allowing it to re-layout its children positions. More...
 
void SendSizeEventToParent (int flags=0)
 Safe wrapper for GetParent()->SendSizeEvent(). More...
 
void SetClientSize (int width, int height)
 This sets the size of the window client area in pixels. More...
 
void SetClientSize (const wxSize &size)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void SetClientSize (const wxRect &rect)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void SetContainingSizer (wxSizer *sizer)
 This normally does not need to be called by user code. More...
 
void SetInitialSize (const wxSize &size=wxDefaultSize)
 A smart SetSize that will fill in default size components with the window's best size values. More...
 
virtual void SetMaxClientSize (const wxSize &size)
 Sets the maximum client size of the window, to indicate to the sizer layout mechanism that this is the maximum possible size of its client area. More...
 
virtual void SetMaxSize (const wxSize &size)
 Sets the maximum size of the window, to indicate to the sizer layout mechanism that this is the maximum possible size. More...
 
virtual void SetMinClientSize (const wxSize &size)
 Sets the minimum client size of the window, to indicate to the sizer layout mechanism that this is the minimum required size of window's client area. More...
 
virtual void SetMinSize (const wxSize &size)
 Sets the minimum size of the window, to indicate to the sizer layout mechanism that this is the minimum required size. More...
 
void SetSize (int x, int y, int width, int height, int sizeFlags=wxSIZE_AUTO)
 Sets the size of the window in pixels. More...
 
void SetSize (const wxRect &rect)
 Sets the size of the window in pixels. More...
 
void SetSize (const wxSize &size)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void SetSize (int width, int height)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
virtual void SetSizeHints (const wxSize &minSize, const wxSize &maxSize=wxDefaultSize, const wxSize &incSize=wxDefaultSize)
 Use of this function for windows which are not toplevel windows (such as wxDialog or wxFrame) is discouraged. More...
 
virtual void SetSizeHints (int minW, int minH, int maxW=-1, int maxH=-1, int incW=-1, int incH=-1)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void SetVirtualSize (int width, int height)
 Sets the virtual size of the window in pixels. More...
 
void SetVirtualSize (const wxSize &size)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void Center (int dir=wxBOTH)
 A synonym for Centre(). More...
 
void CenterOnParent (int dir=wxBOTH)
 A synonym for CentreOnParent(). More...
 
void Centre (int direction=wxBOTH)
 Centres the window. More...
 
void CentreOnParent (int direction=wxBOTH)
 Centres the window on its parent. More...
 
void GetPosition (int *x, int *y) const
 This gets the position of the window in pixels, relative to the parent window for the child windows or relative to the display origin for the top level windows. More...
 
wxPoint GetPosition () const
 This gets the position of the window in pixels, relative to the parent window for the child windows or relative to the display origin for the top level windows. More...
 
wxRect GetRect () const
 Returns the position and size of the window as a wxRect object. More...
 
void GetScreenPosition (int *x, int *y) const
 Returns the window position in screen coordinates, whether the window is a child window or a top level one. More...
 
wxPoint GetScreenPosition () const
 Returns the window position in screen coordinates, whether the window is a child window or a top level one. More...
 
wxRect GetScreenRect () const
 Returns the position and size of the window on the screen as a wxRect object. More...
 
virtual wxPoint GetClientAreaOrigin () const
 Get the origin of the client area of the window relative to the window top left corner (the client area may be shifted because of the borders, scrollbars, other decorations...) More...
 
wxRect GetClientRect () const
 Get the client rectangle in window (i.e. client) coordinates. More...
 
void Move (int x, int y, int flags=wxSIZE_USE_EXISTING)
 Moves the window to the given position. More...
 
void Move (const wxPoint &pt, int flags=wxSIZE_USE_EXISTING)
 Moves the window to the given position. More...
 
void SetPosition (const wxPoint &pt)
 Moves the window to the specified position. More...
 
void ClientToScreen (int *x, int *y) const
 Converts to screen coordinates from coordinates relative to this window. More...
 
wxPoint ClientToScreen (const wxPoint &pt) const
 Converts to screen coordinates from coordinates relative to this window. More...
 
wxPoint ConvertDialogToPixels (const wxPoint &pt) const
 Converts a point or size from dialog units to pixels. More...
 
wxSize ConvertDialogToPixels (const wxSize &sz) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
wxPoint ConvertPixelsToDialog (const wxPoint &pt) const
 Converts a point or size from pixels to dialog units. More...
 
wxSize ConvertPixelsToDialog (const wxSize &sz) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void ScreenToClient (int *x, int *y) const
 Converts from screen to client window coordinates. More...
 
wxPoint ScreenToClient (const wxPoint &pt) const
 Converts from screen to client window coordinates. More...
 
virtual void ClearBackground ()
 Clears the window by filling it with the current background colour. More...
 
void Freeze ()
 Freezes the window or, in other words, prevents any updates from taking place on screen, the window is not redrawn at all. More...
 
void Thaw ()
 Re-enables window updating after a previous call to Freeze(). More...
 
bool IsFrozen () const
 Returns true if the window is currently frozen by a call to Freeze(). More...
 
wxColour GetBackgroundColour () const
 Returns the background colour of the window. More...
 
virtual wxBackgroundStyle GetBackgroundStyle () const
 Returns the background style of the window. More...
 
virtual int GetCharHeight () const
 Returns the character height for this window. More...
 
virtual int GetCharWidth () const
 Returns the average character width for this window. More...
 
virtual wxVisualAttributes GetDefaultAttributes () const
 Currently this is the same as calling wxWindow::GetClassDefaultAttributes(wxWindow::GetWindowVariant()). More...
 
wxFont GetFont () const
 Returns the font for this window. More...
 
wxColour GetForegroundColour () const
 Returns the foreground colour of the window. More...
 
void GetTextExtent (const wxString &string, int *w, int *h, int *descent=NULL, int *externalLeading=NULL, const wxFont *font=NULL) const
 Gets the dimensions of the string as it would be drawn on the window with the currently selected font. More...
 
wxSize GetTextExtent (const wxString &string) const
 Gets the dimensions of the string as it would be drawn on the window with the currently selected font. More...
 
const wxRegionGetUpdateRegion () const
 Returns the region specifying which parts of the window have been damaged. More...
 
wxRect GetUpdateClientRect () const
 Get the update rectangle bounding box in client coords. More...
 
virtual bool HasTransparentBackground ()
 Returns true if this window background is transparent (as, for example, for wxStaticText) and should show the parent window background. More...
 
virtual void Refresh (bool eraseBackground=true, const wxRect *rect=NULL)
 Causes this window, and all of its children recursively (except under wxGTK1 where this is not implemented), to be repainted. More...
 
void RefreshRect (const wxRect &rect, bool eraseBackground=true)
 Redraws the contents of the given rectangle: only the area inside it will be repainted. More...
 
virtual void Update ()
 Calling this method immediately repaints the invalidated area of the window and all of its children recursively (this normally only happens when the flow of control returns to the event loop). More...
 
virtual bool SetBackgroundColour (const wxColour &colour)
 Sets the background colour of the window. More...
 
virtual bool SetBackgroundStyle (wxBackgroundStyle style)
 Sets the background style of the window. More...
 
virtual bool IsTransparentBackgroundSupported (wxString *reason=NULL) const
 Checks whether using transparent background might work. More...
 
virtual bool SetFont (const wxFont &font)
 Sets the font for this window. More...
 
virtual bool SetForegroundColour (const wxColour &colour)
 Sets the foreground colour of the window. More...
 
void SetOwnBackgroundColour (const wxColour &colour)
 Sets the background colour of the window but prevents it from being inherited by the children of this window. More...
 
bool InheritsBackgroundColour () const
 Return true if this window inherits the background colour from its parent. More...
 
bool UseBgCol () const
 Return true if a background colour has been set for this window. More...
 
void SetOwnFont (const wxFont &font)
 Sets the font of the window but prevents it from being inherited by the children of this window. More...
 
void SetOwnForegroundColour (const wxColour &colour)
 Sets the foreground colour of the window but prevents it from being inherited by the children of this window. More...
 
void SetPalette (const wxPalette &pal)
 
virtual bool ShouldInheritColours () const
 Return true from here to allow the colours of this window to be changed by InheritAttributes(). More...
 
virtual void SetThemeEnabled (bool enable)
 This function tells a window if it should use the system's "theme" code to draw the windows' background instead of its own background drawing code. More...
 
virtual bool GetThemeEnabled () const
 Clears the window by filling it with the current background colour. More...
 
virtual bool CanSetTransparent ()
 Returns true if the system supports transparent windows and calling SetTransparent() may succeed. More...
 
virtual bool SetTransparent (wxByte alpha)
 Set the transparency of the window. More...
 
wxEvtHandlerGetEventHandler () const
 Returns the event handler for this window. More...
 
bool HandleAsNavigationKey (const wxKeyEvent &event)
 This function will generate the appropriate call to Navigate() if the key event is one normally used for keyboard navigation and return true in this case. More...
 
bool HandleWindowEvent (wxEvent &event) const
 Shorthand for: More...
 
bool ProcessWindowEvent (wxEvent &event)
 Convenient wrapper for ProcessEvent(). More...
 
bool ProcessWindowEventLocally (wxEvent &event)
 Wrapper for wxEvtHandler::ProcessEventLocally(). More...
 
wxEvtHandlerPopEventHandler (bool deleteHandler=false)
 Removes and returns the top-most event handler on the event handler stack. More...
 
void PushEventHandler (wxEvtHandler *handler)
 Pushes this event handler onto the event stack for the window. More...
 
bool RemoveEventHandler (wxEvtHandler *handler)
 Find the given handler in the windows event handler stack and removes (but does not delete) it from the stack. More...
 
void SetEventHandler (wxEvtHandler *handler)
 Sets the event handler for this window. More...
 
virtual void SetNextHandler (wxEvtHandler *handler)
 wxWindows cannot be used to form event handler chains; this function thus will assert when called. More...
 
virtual void SetPreviousHandler (wxEvtHandler *handler)
 wxWindows cannot be used to form event handler chains; this function thus will assert when called. More...
 
long GetExtraStyle () const
 Returns the extra style bits for the window. More...
 
virtual long GetWindowStyleFlag () const
 Gets the window style that was passed to the constructor or Create() method. More...
 
long GetWindowStyle () const
 See GetWindowStyleFlag() for more info. More...
 
bool HasExtraStyle (int exFlag) const
 Returns true if the window has the given exFlag bit set in its extra styles. More...
 
bool HasFlag (int flag) const
 Returns true if the window has the given flag bit set. More...
 
virtual void SetExtraStyle (long exStyle)
 Sets the extra style bits for the window. More...
 
virtual void SetWindowStyleFlag (long style)
 Sets the style of the window. More...
 
void SetWindowStyle (long style)
 See SetWindowStyleFlag() for more info. More...
 
bool ToggleWindowStyle (int flag)
 Turns the given flag on if it's currently turned off and vice versa. More...
 
void MoveAfterInTabOrder (wxWindow *win)
 Moves this window in the tab navigation order after the specified win. More...
 
void MoveBeforeInTabOrder (wxWindow *win)
 Same as MoveAfterInTabOrder() except that it inserts this window just before win instead of putting it right after it. More...
 
bool Navigate (int flags=wxNavigationKeyEvent::IsForward)
 Performs a keyboard navigation action starting from this window. More...
 
bool NavigateIn (int flags=wxNavigationKeyEvent::IsForward)
 Performs a keyboard navigation action inside this window. More...
 
virtual void Lower ()
 Lowers the window to the bottom of the window hierarchy (Z-order). More...
 
virtual void Raise ()
 Raises the window to the top of the window hierarchy (Z-order). More...
 
bool Hide ()
 Equivalent to calling wxWindow::Show(false). More...
 
virtual bool HideWithEffect (wxShowEffect effect, unsigned int timeout=0)
 This function hides a window, like Hide(), but using a special visual effect if possible. More...
 
bool IsEnabled () const
 Returns true if the window is enabled, i.e. if it accepts user input, false otherwise. More...
 
bool IsExposed (int x, int y) const
 Returns true if the given point or rectangle area has been exposed since the last repaint. More...
 
bool IsExposed (wxPoint &pt) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
bool IsExposed (int x, int y, int w, int h) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
bool IsExposed (wxRect &rect) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
virtual bool IsShown () const
 Returns true if the window is shown, false if it has been hidden. More...
 
virtual bool IsShownOnScreen () const
 Returns true if the window is physically visible on the screen, i.e. it is shown and all its parents up to the toplevel window are shown as well. More...
 
bool Disable ()
 Disables the window. More...
 
virtual bool Enable (bool enable=true)
 Enable or disable the window for user input. More...
 
virtual bool Show (bool show=true)
 Shows or hides the window. More...
 
virtual bool ShowWithEffect (wxShowEffect effect, unsigned int timeout=0)
 This function shows a window, like Show(), but using a special visual effect if possible. More...
 
wxString GetHelpText () const
 Gets the help text to be used as context-sensitive help for this window. More...
 
void SetHelpText (const wxString &helpText)
 Sets the help text to be used as context-sensitive help for this window. More...
 
virtual wxString GetHelpTextAtPoint (const wxPoint &point, wxHelpEvent::Origin origin) const
 Gets the help text to be used as context-sensitive help for this window. More...
 
wxToolTipGetToolTip () const
 Get the associated tooltip or NULL if none. More...
 
wxString GetToolTipText () const
 Get the text of the associated tooltip or empty string if none. More...
 
void SetToolTip (const wxString &tipString)
 Attach a tooltip to the window. More...
 
void SetToolTip (wxToolTip *tip)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void UnsetToolTip ()
 Unset any existing tooltip. More...
 
int GetPopupMenuSelectionFromUser (wxMenu &menu, const wxPoint &pos=wxDefaultPosition)
 This function shows a popup menu at the given position in this window and returns the selected id. More...
 
int GetPopupMenuSelectionFromUser (wxMenu &menu, int x, int y)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
bool PopupMenu (wxMenu *menu, const wxPoint &pos=wxDefaultPosition)
 Pops up the given menu at the specified coordinates, relative to this window, and returns control when the user has dismissed the menu. More...
 
bool PopupMenu (wxMenu *menu, int x, int y)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
virtual wxValidatorGetValidator ()
 Validator functions. More...
 
virtual void SetValidator (const wxValidator &validator)
 Deletes the current validator (if any) and sets the window validator, having called wxValidator::Clone to create a new validator of this type. More...
 
virtual bool TransferDataFromWindow ()
 Transfers values from child controls to data areas specified by their validators. More...
 
virtual bool TransferDataToWindow ()
 Transfers values to child controls from data areas specified by their validators. More...
 
virtual bool Validate ()
 Validates the current values of the child controls using their validators. More...
 
wxWindowID GetId () const
 Returns the identifier of the window. More...
 
virtual wxLayoutDirection GetLayoutDirection () const
 Returns the layout direction for this window, Note that wxLayout_Default is returned if layout direction is not supported. More...
 
virtual wxCoord AdjustForLayoutDirection (wxCoord x, wxCoord width, wxCoord widthTotal) const
 Mirror coordinates for RTL layout if this window uses it and if the mirroring is not done automatically like Win32. More...
 
virtual wxString GetName () const
 Returns the window's name. More...
 
wxWindowVariant GetWindowVariant () const
 Returns the value previously passed to SetWindowVariant(). More...
 
void SetId (wxWindowID winid)
 Sets the identifier of the window. More...
 
virtual void SetLayoutDirection (wxLayoutDirection dir)
 Sets the layout direction for this window. More...
 
virtual void SetName (const wxString &name)
 Sets the window's name. More...
 
void SetWindowVariant (wxWindowVariant variant)
 Chooses a different variant of the window display to use. More...
 
wxAcceleratorTableGetAcceleratorTable ()
 Gets the accelerator table for this window. More...
 
wxAccessibleGetAccessible ()
 Returns the accessible object for this window, if any. More...
 
virtual void SetAcceleratorTable (const wxAcceleratorTable &accel)
 Sets the accelerator table for this window. More...
 
void SetAccessible (wxAccessible *accessible)
 Sets the accessible for this window. More...
 
bool Close (bool force=false)
 This function simply generates a wxCloseEvent whose handler usually tries to close the window. More...
 
virtual bool Destroy ()
 Destroys the window safely. More...
 
bool IsBeingDeleted () const
 Returns true if this window is in process of being destroyed. More...
 
virtual wxDropTargetGetDropTarget () const
 Returns the associated drop target, which may be NULL. More...
 
virtual void SetDropTarget (wxDropTarget *target)
 Associates a drop target with this window. More...
 
virtual void DragAcceptFiles (bool accept)
 Enables or disables eligibility for drop file events (OnDropFiles). More...
 
wxSizerGetContainingSizer () const
 Returns the sizer of which this window is a member, if any, otherwise NULL. More...
 
wxSizerGetSizer () const
 Returns the sizer associated with the window by a previous call to SetSizer(), or NULL. More...
 
void SetSizer (wxSizer *sizer, bool deleteOld=true)
 Sets the window to have the given layout sizer. More...
 
void SetSizerAndFit (wxSizer *sizer, bool deleteOld=true)
 This method calls SetSizer() and then wxSizer::SetSizeHints which sets the initial window size to the size needed to accommodate all sizer elements and sets the size hints which, if this window is a top level one, prevent the user from resizing it to be less than this minimal size. More...
 
wxLayoutConstraintsGetConstraints () const
 Returns a pointer to the window's layout constraints, or NULL if there are none. More...
 
void SetConstraints (wxLayoutConstraints *constraints)
 Sets the window to have the given layout constraints. More...
 
virtual bool Layout ()
 Invokes the constraint-based layout algorithm or the sizer-based algorithm for this window. More...
 
void SetAutoLayout (bool autoLayout)
 Determines whether the Layout() function will be called automatically when the window is resized. More...
 
bool GetAutoLayout () const
 Returns the sizer of which this window is a member, if any, otherwise NULL. More...
 
void CaptureMouse ()
 Directs all mouse input to this window. More...
 
wxCaretGetCaret () const
 Returns the caret() associated with the window. More...
 
const wxCursorGetCursor () const
 Return the cursor associated with this window. More...
 
virtual bool HasCapture () const
 Returns true if this window has the current mouse capture. More...
 
void ReleaseMouse ()
 Releases mouse input captured with CaptureMouse(). More...
 
void SetCaret (wxCaret *caret)
 Sets the caret() associated with the window. More...
 
virtual bool SetCursor (const wxCursor &cursor)
 Sets the window's cursor. More...
 
virtual void WarpPointer (int x, int y)
 Moves the pointer to the given position on the window. More...
 
wxHitTest HitTest (wxCoord x, wxCoord y) const
 Get the window border style from the given flags: this is different from simply doing flags & wxBORDER_MASK because it uses GetDefaultBorder() to translate wxBORDER_DEFAULT to something reasonable. More...
 
wxHitTest HitTest (const wxPoint &pt) const
 Get the window border style from the given flags: this is different from simply doing flags & wxBORDER_MASK because it uses GetDefaultBorder() to translate wxBORDER_DEFAULT to something reasonable. More...
 
wxBorder GetBorder (long flags) const
 Get the window border style from the given flags: this is different from simply doing flags & wxBORDER_MASK because it uses GetDefaultBorder() to translate wxBORDER_DEFAULT to something reasonable. More...
 
wxBorder GetBorder () const
 Get border for the flags of this window. More...
 
virtual void DoUpdateWindowUI (wxUpdateUIEvent &event)
 Does the window-specific updating after processing the update event. More...
 
virtual WXWidget GetHandle () const
 Returns the platform-specific handle of the physical window. More...
 
virtual bool HasMultiplePages () const
 This method should be overridden to return true if this window has multiple pages. More...
 
virtual void InheritAttributes ()
 This function is (or should be, in case of custom controls) called during window creation to intelligently set up the window visual attributes, that is the font and the foreground and background colours. More...
 
virtual void InitDialog ()
 Sends an wxEVT_INIT_DIALOG event, whose handler usually transfers data to the dialog via validators. More...
 
virtual bool IsDoubleBuffered () const
 Returns true if the window contents is double-buffered by the system, i.e. if any drawing done on the window is really done on a temporary backing surface and transferred to the screen all at once later. More...
 
void SetDoubleBuffered (bool on)
 Turn on or off double buffering of the window if the system supports it. More...
 
virtual bool IsRetained () const
 Returns true if the window is retained, false otherwise. More...
 
bool IsThisEnabled () const
 Returns true if this window is intrinsically enabled, false otherwise, i.e. if Enable() Enable(false) had been called. More...
 
virtual bool IsTopLevel () const
 Returns true if the given window is a top-level one. More...
 
virtual void OnInternalIdle ()
 This virtual function is normally only used internally, but sometimes an application may need it to implement functionality that should not be disabled by an application defining an OnIdle handler in a derived class. More...
 
virtual bool SendIdleEvents (wxIdleEvent &event)
 Send idle event to window and all subwindows. More...
 
virtual bool RegisterHotKey (int hotkeyId, int modifiers, int virtualKeyCode)
 Registers a system wide hotkey. More...
 
virtual bool UnregisterHotKey (int hotkeyId)
 Unregisters a system wide hotkey. More...
 
virtual void UpdateWindowUI (long flags=wxUPDATE_UI_NONE)
 This function sends one or more wxUpdateUIEvent to the window. More...
 
- Public Member Functions inherited from wxEvtHandler
 wxEvtHandler ()
 Constructor. More...
 
virtual ~wxEvtHandler ()
 Destructor. More...
 
template<typename T , typename T1 , ... >
void CallAfter (void(T::*method)(T1,...), T1 x1,...)
 Asynchronously call the given method. More...
 
template<typename T >
void CallAfter (const T &functor)
 Asynchronously call the given functor. More...
 
bool ProcessEventLocally (wxEvent &event)
 Try to process the event in this handler and all those chained to it. More...
 
bool SafelyProcessEvent (wxEvent &event)
 Processes an event by calling ProcessEvent() and handles any exceptions that occur in the process. More...
 
void ProcessPendingEvents ()
 Processes the pending events previously queued using QueueEvent() or AddPendingEvent(); you must call this function only if you are sure there are pending events for this handler, otherwise a wxCHECK will fail. More...
 
void DeletePendingEvents ()
 Deletes all events queued on this event handler using QueueEvent() or AddPendingEvent(). More...
 
virtual bool SearchEventTable (wxEventTable &table, wxEvent &event)
 Searches the event table, executing an event handler function if an appropriate one is found. More...
 
void Connect (int id, int lastId, wxEventType eventType, wxObjectEventFunction function, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL)
 Connects the given function dynamically with the event handler, id and event type. More...
 
void Connect (int id, wxEventType eventType, wxObjectEventFunction function, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL)
 See the Connect(int, int, wxEventType, wxObjectEventFunction, wxObject*, wxEvtHandler*) overload for more info. More...
 
void Connect (wxEventType eventType, wxObjectEventFunction function, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL)
 See the Connect(int, int, wxEventType, wxObjectEventFunction, wxObject*, wxEvtHandler*) overload for more info. More...
 
bool Disconnect (wxEventType eventType, wxObjectEventFunction function, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL)
 Disconnects the given function dynamically from the event handler, using the specified parameters as search criteria and returning true if a matching function has been found and removed. More...
 
bool Disconnect (int id=wxID_ANY, wxEventType eventType=wxEVT_NULL, wxObjectEventFunction function=NULL, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL)
 See the Disconnect(wxEventType, wxObjectEventFunction, wxObject*, wxEvtHandler*) overload for more info. More...
 
bool Disconnect (int id, int lastId, wxEventType eventType, wxObjectEventFunction function=NULL, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL)
 See the Disconnect(wxEventType, wxObjectEventFunction, wxObject*, wxEvtHandler*) overload for more info. More...
 
template<typename EventTag , typename Functor >
void Bind (const EventTag &eventType, Functor functor, int id=wxID_ANY, int lastId=wxID_ANY, wxObject *userData=NULL)
 Binds the given function, functor or method dynamically with the event. More...
 
template<typename EventTag , typename Class , typename EventArg , typename EventHandler >
void Bind (const EventTag &eventType, void(Class::*method)(EventArg &), EventHandler *handler, int id=wxID_ANY, int lastId=wxID_ANY, wxObject *userData=NULL)
 See the Bind<>(const EventTag&, Functor, int, int, wxObject*) overload for more info. More...
 
template<typename EventTag , typename Functor >
bool Unbind (const EventTag &eventType, Functor functor, int id=wxID_ANY, int lastId=wxID_ANY, wxObject *userData=NULL)
 Unbinds the given function, functor or method dynamically from the event handler, using the specified parameters as search criteria and returning true if a matching function has been found and removed. More...
 
template<typename EventTag , typename Class , typename EventArg , typename EventHandler >
bool Unbind (const EventTag &eventType, void(Class::*method)(EventArg &), EventHandler *handler, int id=wxID_ANY, int lastId=wxID_ANY, wxObject *userData=NULL)
 See the Unbind<>(const EventTag&, Functor, int, int, wxObject*) overload for more info. More...
 
void * GetClientData () const
 Returns user-supplied client data. More...
 
wxClientDataGetClientObject () const
 Returns a pointer to the user-supplied client data object. More...
 
void SetClientData (void *data)
 Sets user-supplied client data. More...
 
void SetClientObject (wxClientData *data)
 Set the client data object. More...
 
bool GetEvtHandlerEnabled () const
 Returns true if the event handler is enabled, false otherwise. More...
 
wxEvtHandlerGetNextHandler () const
 Returns the pointer to the next handler in the chain. More...
 
wxEvtHandlerGetPreviousHandler () const
 Returns the pointer to the previous handler in the chain. More...
 
void SetEvtHandlerEnabled (bool enabled)
 Enables or disables the event handler. More...
 
void Unlink ()
 Unlinks this event handler from the chain it's part of (if any); then links the "previous" event handler to the "next" one (so that the chain won't be interrupted). More...
 
bool IsUnlinked () const
 Returns true if the next and the previous handler pointers of this event handler instance are NULL. More...
 
- Public Member Functions inherited from wxObject
 wxObject ()
 Default ctor; initializes to NULL the internal reference data. More...
 
 wxObject (const wxObject &other)
 Copy ctor. More...
 
virtual ~wxObject ()
 Destructor. More...
 
virtual wxClassInfoGetClassInfo () const
 This virtual function is redefined for every class that requires run-time type information, when using the wxDECLARE_CLASS macro (or similar). More...
 
wxObjectRefDataGetRefData () const
 Returns the wxObject::m_refData pointer, i.e. the data referenced by this object. More...
 
bool IsKindOf (const wxClassInfo *info) const
 Determines whether this class is a subclass of (or the same class as) the given class. More...
 
bool IsSameAs (const wxObject &obj) const
 Returns true if this object has the same data pointer as obj. More...
 
void Ref (const wxObject &clone)
 Makes this object refer to the data in clone. More...
 
void SetRefData (wxObjectRefData *data)
 Sets the wxObject::m_refData pointer. More...
 
void UnRef ()
 Decrements the reference count in the associated data, and if it is zero, deletes the data. More...
 
void UnShare ()
 This is the same of AllocExclusive() but this method is public. More...
 
void operator delete (void *buf)
 The delete operator is defined for debugging versions of the library only, when the identifier WXDEBUG is defined. More...
 
void * operator new (size_t size, const wxString &filename=NULL, int lineNum=0)
 The new operator is defined for debugging versions of the library only, when the identifier WXDEBUG is defined. More...
 
- Public Member Functions inherited from wxTextEntry
bool AutoComplete (const wxArrayString &choices)
 Call this function to enable auto-completion of the text typed in a single-line text control using the given choices. More...
 
bool AutoComplete (wxTextCompleter *completer)
 Enable auto-completion using the provided completer object. More...
 
bool AutoCompleteFileNames ()
 Call this function to enable auto-completion of the text typed in a single-line text control using all valid file system paths. More...
 
bool AutoCompleteDirectories ()
 Call this function to enable auto-completion of the text using the file system directories. More...
 
virtual bool CanCopy () const
 Returns true if the selection can be copied to the clipboard. More...
 
virtual bool CanCut () const
 Returns true if the selection can be cut to the clipboard. More...
 
virtual void ChangeValue (const wxString &value)
 Sets the new text control value. More...
 
virtual wxString GetRange (long from, long to) const
 Returns the string containing the text starting in the positions from and up to to in the control. More...
 
virtual wxString GetStringSelection () const
 Gets the text currently selected in the control. More...
 
virtual wxString GetValue () const
 Gets the contents of the control. More...
 
virtual bool IsEmpty () const
 Returns true if the control is currently empty. More...
 
virtual void SetInsertionPointEnd ()
 Sets the insertion point at the end of the text control. More...
 
virtual void SetMaxLength (unsigned long len)
 This function sets the maximum number of characters the user can enter into the control. More...
 
virtual bool SetHint (const wxString &hint)
 Sets a hint shown in an empty unfocused text control. More...
 
virtual wxString GetHint () const
 Returns the current hint string. More...
 
wxPoint GetMargins () const
 Returns the margins used by the control. More...
 
virtual void SetValue (const wxString &value)
 Sets the new text control value. More...
 
bool SetMargins (const wxPoint &pt)
 Attempts to set the control margins. More...
 
bool SetMargins (wxCoord left, wxCoord top=-1)
 Attempts to set the control margins. More...
 

Static Public Member Functions

static wxVersionInfo GetLibraryVersionInfo ()
 
- Static Public Member Functions inherited from wxControl
static wxString GetLabelText (const wxString &label)
 Returns the given label string without mnemonics ("&" characters). More...
 
static wxString RemoveMnemonics (const wxString &str)
 Returns the given str string without mnemonics ("&" characters). More...
 
static wxString EscapeMnemonics (const wxString &text)
 Escapes the special mnemonics characters ("&") in the given string. More...
 
static wxString Ellipsize (const wxString &label, const wxDC &dc, wxEllipsizeMode mode, int maxWidth, int flags=wxELLIPSIZE_FLAGS_DEFAULT)
 Replaces parts of the label string with ellipsis, if needed, so that it fits into maxWidth pixels if possible. More...
 
- Static Public Member Functions inherited from wxWindow
static wxVisualAttributes GetClassDefaultAttributes (wxWindowVariant variant=wxWINDOW_VARIANT_NORMAL)
 Returns the default font and colours which are used by the control. More...
 
static wxWindowFindFocus ()
 Finds the window or control which currently has the keyboard focus. More...
 
static wxWindowFindWindowById (long id, const wxWindow *parent=0)
 Find the first window with the given id. More...
 
static wxWindowFindWindowByLabel (const wxString &label, const wxWindow *parent=0)
 Find a window by its label. More...
 
static wxWindowFindWindowByName (const wxString &name, const wxWindow *parent=0)
 Find a window by its name (as given in a window constructor or Create() function call). More...
 
static wxWindowGetCapture ()
 Returns the currently captured window. More...
 
static wxWindowID NewControlId (int count=1)
 Create a new ID or range of IDs that are not currently in use. More...
 
static void UnreserveControlId (wxWindowID id, int count=1)
 Unreserve an ID or range of IDs that was reserved by NewControlId(). More...
 
- Static Public Member Functions inherited from wxEvtHandler
static void AddFilter (wxEventFilter *filter)
 Add an event filter whose FilterEvent() method will be called for each and every event processed by wxWidgets. More...
 
static void RemoveFilter (wxEventFilter *filter)
 Remove a filter previously installed with AddFilter(). More...
 

Additional Inherited Members

- Protected Member Functions inherited from wxWindow
virtual void DoCentre (int direction)
 Centres the window. More...
 
virtual wxSize DoGetBestSize () const
 Implementation of GetBestSize() that can be overridden. More...
 
virtual wxSize DoGetBestClientSize () const
 Override this method to return the best size for a custom control. More...
 
virtual int DoGetBestClientHeight (int width) const
 Override this method to implement height-for-width best size calculation. More...
 
virtual int DoGetBestClientWidth (int height) const
 Override this method to implement width-for-height best size calculation. More...
 
virtual void SetInitialBestSize (const wxSize &size)
 Sets the initial window size if none is given (i.e. at least one of the components of the size passed to ctor/Create() is wxDefaultCoord). More...
 
void SendDestroyEvent ()
 Generate wxWindowDestroyEvent for this window. More...
 
virtual bool ProcessEvent (wxEvent &event)
 This function is public in wxEvtHandler but protected in wxWindow because for wxWindows you should always call ProcessEvent() on the pointer returned by GetEventHandler() and not on the wxWindow object itself. More...
 
bool SafelyProcessEvent (wxEvent &event)
 See ProcessEvent() for more info about why you shouldn't use this function and the reason for making this function protected in wxWindow. More...
 
virtual void QueueEvent (wxEvent *event)
 See ProcessEvent() for more info about why you shouldn't use this function and the reason for making this function protected in wxWindow. More...
 
virtual void AddPendingEvent (const wxEvent &event)
 See ProcessEvent() for more info about why you shouldn't use this function and the reason for making this function protected in wxWindow. More...
 
void ProcessPendingEvents ()
 See ProcessEvent() for more info about why you shouldn't use this function and the reason for making this function protected in wxWindow. More...
 
bool ProcessThreadEvent (const wxEvent &event)
 See ProcessEvent() for more info about why you shouldn't use this function and the reason for making this function protected in wxWindow. More...
 
- Protected Member Functions inherited from wxEvtHandler
virtual bool TryBefore (wxEvent &event)
 Method called by ProcessEvent() before examining this object event tables. More...
 
virtual bool TryAfter (wxEvent &event)
 Method called by ProcessEvent() as last resort. More...
 
- Protected Member Functions inherited from wxObject
void AllocExclusive ()
 Ensure that this object's data is not shared with any other object. More...
 
virtual wxObjectRefDataCreateRefData () const
 Creates a new instance of the wxObjectRefData-derived class specific to this object and returns it. More...
 
virtual wxObjectRefDataCloneRefData (const wxObjectRefData *data) const
 Creates a new instance of the wxObjectRefData-derived class specific to this object and initializes it copying data. More...
 
- Protected Attributes inherited from wxObject
wxObjectRefDatam_refData
 Pointer to an object which is the object's reference-counted data. More...
 

Constructor & Destructor Documentation

wxStyledTextCtrl::wxStyledTextCtrl ( wxWindow parent,
wxWindowID  id = wxID_ANY,
const wxPoint pos = wxDefaultPosition,
const wxSize size = wxDefaultSize,
long  style = 0,
const wxString name = wxSTCNameStr 
)

Ctor.

wxStyledTextCtrl::wxStyledTextCtrl ( )

Default ctor.

wxStyledTextCtrl::~wxStyledTextCtrl ( )

Destructor.

Member Function Documentation

void wxStyledTextCtrl::AddRefDocument ( void *  docPointer)

Extend life of document.

int wxStyledTextCtrl::AddSelection ( int  caret,
int  anchor 
)

Add a selection.

void wxStyledTextCtrl::AddStyledText ( const wxMemoryBuffer data)

Add array of cells to document.

void wxStyledTextCtrl::AddText ( const wxString text)

Add text to the document at current position.

void wxStyledTextCtrl::AddTextRaw ( const char *  text,
int  length = -1 
)

Add text to the document at current position.

void wxStyledTextCtrl::AddUndoAction ( int  token,
int  flags 
)

Add a container action to the undo stack.

void wxStyledTextCtrl::Allocate ( int  bytes)

Enlarge the document to a particular size of text bytes.

void wxStyledTextCtrl::AnnotationClearAll ( )

Clear the annotations from all lines.

void wxStyledTextCtrl::AnnotationClearLine ( int  line)

Clear annotations from the given line.

int wxStyledTextCtrl::AnnotationGetLines ( int  line) const

Get the number of annotation lines for a line.

int wxStyledTextCtrl::AnnotationGetStyle ( int  line) const

Get the style number for the annotations for a line.

int wxStyledTextCtrl::AnnotationGetStyleOffset ( ) const

Get the start of the range of style numbers used for annotations.

wxString wxStyledTextCtrl::AnnotationGetStyles ( int  line) const

Get the annotation styles for a line.

wxString wxStyledTextCtrl::AnnotationGetText ( int  line) const

Get the annotation text for a line.

int wxStyledTextCtrl::AnnotationGetVisible ( ) const

Get the visibility for the annotations for a view.

void wxStyledTextCtrl::AnnotationSetStyle ( int  line,
int  style 
)

Set the style number for the annotations for a line.

void wxStyledTextCtrl::AnnotationSetStyleOffset ( int  style)

Get the start of the range of style numbers used for annotations.

void wxStyledTextCtrl::AnnotationSetStyles ( int  line,
const wxString styles 
)

Set the annotation styles for a line.

void wxStyledTextCtrl::AnnotationSetText ( int  line,
const wxString text 
)

Set the annotation text for a line.

void wxStyledTextCtrl::AnnotationSetVisible ( int  visible)

Set the visibility for the annotations for a view.

void wxStyledTextCtrl::AppendText ( const wxString text)
virtual

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

Reimplemented from wxTextEntry.

void wxStyledTextCtrl::AppendTextRaw ( const char *  text,
int  length = -1 
)

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

bool wxStyledTextCtrl::AutoCompActive ( )

Is there an auto-completion list visible?

void wxStyledTextCtrl::AutoCompCancel ( )

Remove the auto-completion list from the screen.

void wxStyledTextCtrl::AutoCompComplete ( )

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

bool wxStyledTextCtrl::AutoCompGetAutoHide ( ) const

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

bool wxStyledTextCtrl::AutoCompGetCancelAtStart ( ) const

Retrieve whether auto-completion cancelled by backspacing before start.

int wxStyledTextCtrl::AutoCompGetCaseInsensitiveBehaviour ( ) const

Get auto-completion case insensitive behaviour.

bool wxStyledTextCtrl::AutoCompGetChooseSingle ( ) const

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

int wxStyledTextCtrl::AutoCompGetCurrent ( ) const

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

bool wxStyledTextCtrl::AutoCompGetDropRestOfWord ( ) const

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

bool wxStyledTextCtrl::AutoCompGetIgnoreCase ( ) const

Retrieve state of ignore case flag.

int wxStyledTextCtrl::AutoCompGetMaxHeight ( ) const

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

int wxStyledTextCtrl::AutoCompGetMaxWidth ( ) const

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

int wxStyledTextCtrl::AutoCompGetSeparator ( ) const

Retrieve the auto-completion list separator character.

int wxStyledTextCtrl::AutoCompGetTypeSeparator ( ) const

Retrieve the auto-completion list type-separator character.

int wxStyledTextCtrl::AutoCompPosStart ( )

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

void wxStyledTextCtrl::AutoCompSelect ( const wxString text)

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

void wxStyledTextCtrl::AutoCompSetAutoHide ( bool  autoHide)

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

void wxStyledTextCtrl::AutoCompSetCancelAtStart ( bool  cancel)

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

void wxStyledTextCtrl::AutoCompSetCaseInsensitiveBehaviour ( int  behaviour)

Set auto-completion case insensitive behaviour to either prefer case-sensitive matches or have no preference.

void wxStyledTextCtrl::AutoCompSetChooseSingle ( bool  chooseSingle)

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

void wxStyledTextCtrl::AutoCompSetDropRestOfWord ( bool  dropRestOfWord)

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

void wxStyledTextCtrl::AutoCompSetFillUps ( const wxString characterSet)

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

void wxStyledTextCtrl::AutoCompSetIgnoreCase ( bool  ignoreCase)

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

void wxStyledTextCtrl::AutoCompSetMaxHeight ( int  rowCount)

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

The default is 5 rows.

void wxStyledTextCtrl::AutoCompSetMaxWidth ( int  characterCount)

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.

void wxStyledTextCtrl::AutoCompSetSeparator ( int  separatorCharacter)

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

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

void wxStyledTextCtrl::AutoCompSetTypeSeparator ( int  separatorCharacter)

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

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

void wxStyledTextCtrl::AutoCompShow ( int  lenEntered,
const wxString itemList 
)

Display a auto-completion list.

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

void wxStyledTextCtrl::AutoCompStops ( const wxString characterSet)

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

void wxStyledTextCtrl::BackTab ( )

Dedent the selected lines.

void wxStyledTextCtrl::BeginUndoAction ( )

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

May be nested.

void wxStyledTextCtrl::BraceBadLight ( int  pos)

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

void wxStyledTextCtrl::BraceBadLightIndicator ( bool  useBraceBadLightIndicator,
int  indicator 
)

Use specified indicator to highlight non matching brace instead of changing its style.

void wxStyledTextCtrl::BraceHighlight ( int  pos1,
int  pos2 
)

Highlight the characters at two positions.

void wxStyledTextCtrl::BraceHighlightIndicator ( bool  useBraceHighlightIndicator,
int  indicator 
)

Use specified indicator to highlight matching braces instead of changing their style.

int wxStyledTextCtrl::BraceMatch ( int  pos)

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

bool wxStyledTextCtrl::CallTipActive ( )

Is there an active call tip?

void wxStyledTextCtrl::CallTipCancel ( )

Remove the call tip from the screen.

int wxStyledTextCtrl::CallTipPosAtStart ( )

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

void wxStyledTextCtrl::CallTipSetBackground ( const wxColour back)

Set the background colour for the call tip.

void wxStyledTextCtrl::CallTipSetForeground ( const wxColour fore)

Set the foreground colour for the call tip.

void wxStyledTextCtrl::CallTipSetForegroundHighlight ( const wxColour fore)

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

void wxStyledTextCtrl::CallTipSetHighlight ( int  start,
int  end 
)

Highlight a segment of the definition.

void wxStyledTextCtrl::CallTipSetPosition ( bool  above)

Set position of calltip, above or below text.

void wxStyledTextCtrl::CallTipShow ( int  pos,
const wxString definition 
)

Show a call tip containing a definition near position pos.

void wxStyledTextCtrl::CallTipUseStyle ( int  tabSize)

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

void wxStyledTextCtrl::Cancel ( )

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

bool wxStyledTextCtrl::CanPaste ( ) const
virtual

Will a paste succeed?

Reimplemented from wxTextEntry.

bool wxStyledTextCtrl::CanRedo ( ) const
virtual

Are there any redoable actions in the undo history?

Reimplemented from wxTextEntry.

bool wxStyledTextCtrl::CanUndo ( ) const
virtual

Are there any undoable actions in the undo history?

Reimplemented from wxTextEntry.

int wxStyledTextCtrl::ChangeLexerState ( int  start,
int  end 
)

Indicate that the internal state of a lexer has changed over a range and therefore there may be a need to redraw.

void wxStyledTextCtrl::CharLeft ( )

Move caret left one character.

void wxStyledTextCtrl::CharLeftExtend ( )

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

void wxStyledTextCtrl::CharLeftRectExtend ( )

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

int wxStyledTextCtrl::CharPositionFromPoint ( int  x,
int  y 
)

Find the position of a character from a point within the window.

int wxStyledTextCtrl::CharPositionFromPointClose ( int  x,
int  y 
)

Find the position of a character from a point within the window.

Return INVALID_POSITION if not close to text.

void wxStyledTextCtrl::CharRight ( )

Move caret right one character.

void wxStyledTextCtrl::CharRightExtend ( )

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

void wxStyledTextCtrl::CharRightRectExtend ( )

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

void wxStyledTextCtrl::ChooseCaretX ( )

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

void wxStyledTextCtrl::Clear ( )
virtual

Clear the selection.

Reimplemented from wxTextEntry.

void wxStyledTextCtrl::ClearAll ( )

Delete all text in the document.

void wxStyledTextCtrl::ClearDocumentStyle ( )

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

void wxStyledTextCtrl::ClearRegisteredImages ( )

Clear all the registered images.

void wxStyledTextCtrl::ClearSelections ( )

Clear selections to a single empty stream selection.

void wxStyledTextCtrl::CmdKeyAssign ( int  key,
int  modifiers,
int  cmd 
)

When key+modifier combination km is pressed perform msg.

void wxStyledTextCtrl::CmdKeyClear ( int  key,
int  modifiers 
)

When key+modifier combination km is pressed do nothing.

void wxStyledTextCtrl::CmdKeyClearAll ( )

Drop all key mappings.

void wxStyledTextCtrl::CmdKeyExecute ( int  cmd)

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

void wxStyledTextCtrl::Colourise ( int  start,
int  end 
)

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

int wxStyledTextCtrl::ContractedFoldNext ( int  lineStart)

Find the next line at or after lineStart that is a contracted fold header line.

Return -1 when no more lines.

void wxStyledTextCtrl::ConvertEOLs ( int  eolMode)

Convert all line endings in the document to one mode.

void wxStyledTextCtrl::Copy ( )
virtual

Copy the selection to the clipboard.

Reimplemented from wxTextEntry.

void wxStyledTextCtrl::CopyAllowLine ( )

Copy the selection, if selection empty copy the line with the caret.

void wxStyledTextCtrl::CopyRange ( int  start,
int  end 
)

Copy a range of text to the clipboard.

Positions are clipped into the document.

void wxStyledTextCtrl::CopyText ( int  length,
const wxString text 
)

Copy argument text to the clipboard.

int wxStyledTextCtrl::CountCharacters ( int  startPos,
int  endPos 
)

Count characters between two positions.

bool wxStyledTextCtrl::Create ( wxWindow parent,
wxWindowID  id = wxID_ANY,
const wxPoint pos = wxDefaultPosition,
const wxSize size = wxDefaultSize,
long  style = 0,
const wxString name = wxSTCNameStr 
)

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

(For 2-phase create.)

void* wxStyledTextCtrl::CreateDocument ( )

Create a new document object.

Starts with reference count of 1 and not selected into editor.

void* wxStyledTextCtrl::CreateLoader ( int  bytes) const

Create an ILoader*.

void wxStyledTextCtrl::Cut ( )
virtual

Cut the selection to the clipboard.

Reimplemented from wxTextEntry.

void wxStyledTextCtrl::DeleteBack ( )

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

void wxStyledTextCtrl::DeleteBackNotLine ( )

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

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

void wxStyledTextCtrl::DeleteRange ( int  pos,
int  deleteLength 
)

Delete a range of text in the document.

void wxStyledTextCtrl::DelLineLeft ( )

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

void wxStyledTextCtrl::DelLineRight ( )

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

void wxStyledTextCtrl::DelWordLeft ( )

Delete the word to the left of the caret.

void wxStyledTextCtrl::DelWordRight ( )

Delete the word to the right of the caret.

void wxStyledTextCtrl::DelWordRightEnd ( )

Delete the word to the right of the caret, but not the trailing non-word characters.

wxString wxStyledTextCtrl::DescribeKeyWordSets ( ) const

Retrieve a '
' separated list of descriptions of the keyword sets understood by the current lexer.

wxString wxStyledTextCtrl::DescribeProperty ( const wxString name) const

Describe a property.

virtual void wxStyledTextCtrl::DiscardEdits ( )
virtual
int wxStyledTextCtrl::DocLineFromVisible ( int  lineDisplay)

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

void wxStyledTextCtrl::DocumentEnd ( )

Move caret to last position in document.

void wxStyledTextCtrl::DocumentEndExtend ( )

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

void wxStyledTextCtrl::DocumentStart ( )

Move caret to first position in document.

void wxStyledTextCtrl::DocumentStartExtend ( )

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

wxDragResult wxStyledTextCtrl::DoDragOver ( wxCoord  x,
wxCoord  y,
wxDragResult  defaultRes 
)

Allow for simulating a DnD DragOver.

bool wxStyledTextCtrl::DoDropText ( long  x,
long  y,
const wxString data 
)

Allow for simulating a DnD DropText.

void wxStyledTextCtrl::EditToggleOvertype ( )

Switch from insert to overtype mode or the reverse.

void wxStyledTextCtrl::EmptyUndoBuffer ( )

Delete the undo history.

void wxStyledTextCtrl::EndUndoAction ( )

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

void wxStyledTextCtrl::EnsureCaretVisible ( )

Ensure the caret is visible.

void wxStyledTextCtrl::EnsureVisible ( int  line)

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

void wxStyledTextCtrl::EnsureVisibleEnforcePolicy ( int  line)

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.

int wxStyledTextCtrl::FindColumn ( int  line,
int  column 
)

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.

int wxStyledTextCtrl::FindText ( int  minPos,
int  maxPos,
const wxString text,
int  flags = 0 
)

Find some text in the document.

int wxStyledTextCtrl::FormatRange ( bool  doDraw,
int  startPos,
int  endPos,
wxDC draw,
wxDC target,
wxRect  renderRect,
wxRect  pageRect 
)

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

void wxStyledTextCtrl::FormFeed ( )

Insert a Form Feed character.

wxColour wxStyledTextCtrl::GetAdditionalCaretForeground ( ) const

Get the foreground colour of additional carets.

bool wxStyledTextCtrl::GetAdditionalCaretsBlink ( ) const

Whether additional carets will blink.

bool wxStyledTextCtrl::GetAdditionalCaretsVisible ( ) const

Whether additional carets are visible.

int wxStyledTextCtrl::GetAdditionalSelAlpha ( ) const

Get the alpha of the selection.

bool wxStyledTextCtrl::GetAdditionalSelectionTyping ( ) const

Whether typing can be performed into multiple selections.

bool wxStyledTextCtrl::GetAllLinesVisible ( ) const

Are all lines visible?

int wxStyledTextCtrl::GetAnchor ( ) const

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

bool wxStyledTextCtrl::GetBackSpaceUnIndents ( ) const

Does a backspace pressed when caret is within indentation unindent?

bool wxStyledTextCtrl::GetBufferedDraw ( ) const

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

wxColour wxStyledTextCtrl::GetCaretForeground ( ) const

Get the foreground colour of the caret.

int wxStyledTextCtrl::GetCaretLineBackAlpha ( ) const

Get the background alpha of the caret line.

wxColour wxStyledTextCtrl::GetCaretLineBackground ( ) const

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

bool wxStyledTextCtrl::GetCaretLineVisible ( ) const

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

int wxStyledTextCtrl::GetCaretPeriod ( ) const

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

int wxStyledTextCtrl::GetCaretSticky ( ) const

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

int wxStyledTextCtrl::GetCaretStyle ( ) const

Returns the current style of the caret.

int wxStyledTextCtrl::GetCaretWidth ( ) const

Returns the width of the insert mode caret.

const char* wxStyledTextCtrl::GetCharacterPointer ( ) const

Compact the document buffer and return a read-only pointer to the characters in the document.

int wxStyledTextCtrl::GetCharAt ( int  pos) const

Returns the character byte at the position.

int wxStyledTextCtrl::GetCodePage ( ) const

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

int wxStyledTextCtrl::GetColumn ( int  pos) const

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

int wxStyledTextCtrl::GetControlCharSymbol ( ) const

Get the way control characters are displayed.

wxString wxStyledTextCtrl::GetCurLine ( int *  linePos = NULL)

Retrieve the text of the line containing the caret.

Returns the index of the caret on the line.

wxCharBuffer wxStyledTextCtrl::GetCurLineRaw ( int *  linePos = NULL)

Retrieve the text of the line containing the caret.

Returns the index of the caret on the line.

int wxStyledTextCtrl::GetCurrentLine ( )

Returns the line number of the line with the caret.

int wxStyledTextCtrl::GetCurrentPos ( ) const

Returns the position of the caret.

void* wxStyledTextCtrl::GetDocPointer ( )

Retrieve a pointer to the document object.

wxColour wxStyledTextCtrl::GetEdgeColour ( ) const

Retrieve the colour used in edge indication.

int wxStyledTextCtrl::GetEdgeColumn ( ) const

Retrieve the column number which text should be kept within.

int wxStyledTextCtrl::GetEdgeMode ( ) const

Retrieve the edge highlight mode.

bool wxStyledTextCtrl::GetEndAtLastLine ( ) const

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

int wxStyledTextCtrl::GetEndStyled ( ) const

Retrieve the position of the last correctly styled character.

int wxStyledTextCtrl::GetEOLMode ( ) const

Retrieve the current end of line mode - one of CRLF, CR, or LF.

int wxStyledTextCtrl::GetExtraAscent ( ) const

Get extra ascent for each line.

int wxStyledTextCtrl::GetExtraDescent ( ) const

Get extra descent for each line.

int wxStyledTextCtrl::GetFirstVisibleLine ( ) const

Retrieve the display line at the top of the display.

bool wxStyledTextCtrl::GetFoldExpanded ( int  line) const

Is a header line expanded?

int wxStyledTextCtrl::GetFoldLevel ( int  line) const

Retrieve the fold level of a line.

int wxStyledTextCtrl::GetFoldParent ( int  line) const

Find the parent line of a child line.

int wxStyledTextCtrl::GetGapPosition ( ) const

Return a position which, to avoid performance costs, should not be within the range of a call to GetRangePointer.

int wxStyledTextCtrl::GetHighlightGuide ( ) const

Get the highlighted indentation guide column.

wxColour wxStyledTextCtrl::GetHotspotActiveBackground ( ) const

Get the back colour for active hotspots.

wxColour wxStyledTextCtrl::GetHotspotActiveForeground ( ) const

Get the fore colour for active hotspots.

bool wxStyledTextCtrl::GetHotspotActiveUnderline ( ) const

Get whether underlining for active hotspots.

bool wxStyledTextCtrl::GetHotspotSingleLine ( ) const

Get the HotspotSingleLine property.

int wxStyledTextCtrl::GetIdentifier ( ) const

Get the identifier.

int wxStyledTextCtrl::GetIndent ( ) const

Retrieve indentation size.

int wxStyledTextCtrl::GetIndentationGuides ( ) const

Are the indentation guides visible?

int wxStyledTextCtrl::GetIndicatorCurrent ( ) const

Get the current indicator.

int wxStyledTextCtrl::GetIndicatorValue ( ) const

Get the current indicator value.

virtual long wxStyledTextCtrl::GetInsertionPoint ( ) const
virtual

Returns the insertion point, or cursor, position.

This is defined as the zero based index of the character position to the right of the insertion point. For example, if the insertion point is at the end of the single-line text control, it is equal to GetLastPosition().

Notice that insertion position is, in general, different from the index of the character the cursor position at in the string returned by GetValue(). While this is always the case for the single line controls, multi-line controls can use two characters "\\r\\n" as line separator (this is notably the case under MSW) meaning that indices in the control and its string value are offset by 1 for every line.

Hence to correctly get the character at the current cursor position, taking into account that there can be none if the cursor is at the end of the string, you could do the following:

wxString GetCurrentChar(wxTextCtrl *tc)
{
long pos = tc->GetInsertionPoint();
if ( pos == tc->GetLastPosition() )
return wxString();
return tc->GetRange(pos, pos + 1);
}

Reimplemented from wxTextEntry.

bool wxStyledTextCtrl::GetKeysUnicode ( ) const

Are keys always interpreted as Unicode?

int wxStyledTextCtrl::GetLastChild ( int  line,
int  level 
) const

Find the last child line of a header line.

bool wxStyledTextCtrl::GetLastKeydownProcessed ( )

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

virtual long wxStyledTextCtrl::GetLastPosition ( ) const
virtual

Returns the zero based index of the last position in the text control, which is equal to the number of characters in the control.

Reimplemented from wxTextEntry.

int wxStyledTextCtrl::GetLayoutCache ( ) const

Retrieve the degree of caching of layout information.

int wxStyledTextCtrl::GetLength ( ) const

Returns the number of bytes in the document.

int wxStyledTextCtrl::GetLexer ( ) const

Retrieve the lexing language of the document.

static wxVersionInfo wxStyledTextCtrl::GetLibraryVersionInfo ( )
static
wxString wxStyledTextCtrl::GetLine ( int  line) const

Retrieve the contents of a line.

int wxStyledTextCtrl::GetLineCount ( ) const

Returns the number of lines in the document.

There is always at least one.

int wxStyledTextCtrl::GetLineEndPosition ( int  line) const

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

int wxStyledTextCtrl::GetLineIndentation ( int  line) const

Retrieve the number of columns that a line is indented.

int wxStyledTextCtrl::GetLineIndentPosition ( int  line) const

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

virtual int wxStyledTextCtrl::GetLineLength ( long  n) const
virtual
wxCharBuffer wxStyledTextCtrl::GetLineRaw ( int  line)

Retrieve the contents of a line.

int wxStyledTextCtrl::GetLineSelEndPosition ( int  line)

Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line).

int wxStyledTextCtrl::GetLineSelStartPosition ( int  line)

Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line).

int wxStyledTextCtrl::GetLineState ( int  line) const

Retrieve the extra styling information for a line.

virtual wxString wxStyledTextCtrl::GetLineText ( long  n) const
virtual
bool wxStyledTextCtrl::GetLineVisible ( int  line) const

Is a line visible?

int wxStyledTextCtrl::GetMainSelection ( ) const

Which selection is the main selection.

int wxStyledTextCtrl::GetMarginCursor ( int  margin) const

Retrieve the cursor shown in a margin.

int wxStyledTextCtrl::GetMarginLeft ( ) const

Returns the size in pixels of the left margin.

int wxStyledTextCtrl::GetMarginMask ( int  margin) const

Retrieve the marker mask of a margin.

int wxStyledTextCtrl::GetMarginOptions ( ) const

Get the margin options.

int wxStyledTextCtrl::GetMarginRight ( ) const

Returns the size in pixels of the right margin.

bool wxStyledTextCtrl::GetMarginSensitive ( int  margin) const

Retrieve the mouse click sensitivity of a margin.

int wxStyledTextCtrl::GetMarginType ( int  margin) const

Retrieve the type of a margin.

int wxStyledTextCtrl::GetMarginWidth ( int  margin) const

Retrieve the width of a margin in pixels.

int wxStyledTextCtrl::GetMarkerSymbolDefined ( int  markerNumber)

Which symbol was defined for markerNumber with MarkerDefine.

int wxStyledTextCtrl::GetMaxLineState ( ) const

Retrieve the last line number that has line state.

int wxStyledTextCtrl::GetModEventMask ( ) const

Get which document modification events are sent to the container.

bool wxStyledTextCtrl::GetModify ( ) const

Is the document different from when it was last saved?

bool wxStyledTextCtrl::GetMouseDownCaptures ( ) const

Get whether mouse gets captured.

int wxStyledTextCtrl::GetMouseDwellTime ( ) const

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

int wxStyledTextCtrl::GetMultiPaste ( ) const

Retrieve the effect of pasting when there are multiple selections.

bool wxStyledTextCtrl::GetMultipleSelection ( ) const

Whether multiple selections can be made.

virtual int wxStyledTextCtrl::GetNumberOfLines ( ) const
virtual
bool wxStyledTextCtrl::GetOvertype ( ) const

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

bool wxStyledTextCtrl::GetPasteConvertEndings ( ) const

Get convert-on-paste setting.

int wxStyledTextCtrl::GetPositionCacheSize ( ) const

How many entries are allocated to the position cache?

int wxStyledTextCtrl::GetPrintColourMode ( ) const

Returns the print colour mode.

int wxStyledTextCtrl::GetPrintMagnification ( ) const

Returns the print magnification.

int wxStyledTextCtrl::GetPrintWrapMode ( ) const

Is printing line wrapped?

wxString wxStyledTextCtrl::GetProperty ( const wxString key)

Retrieve a 'property' value previously set with SetProperty.

wxString wxStyledTextCtrl::GetPropertyExpanded ( const wxString key)

Retrieve a 'property' value previously set with SetProperty, with '$()' variable replacement on returned buffer.

int wxStyledTextCtrl::GetPropertyInt ( const wxString key) const

Retrieve a 'property' value previously set with SetProperty, interpreted as an int AFTER any '$()' variable replacement.

wxString wxStyledTextCtrl::GetPunctuationChars ( ) const

Get the set of characters making up punctuation characters.

const char* wxStyledTextCtrl::GetRangePointer ( int  position,
int  rangeLength 
) const

Return a read-only pointer to a range of characters in the document.

May move the gap so that the range is contiguous, but will only move up to rangeLength bytes.

bool wxStyledTextCtrl::GetReadOnly ( ) const

In read-only mode?

int wxStyledTextCtrl::GetRectangularSelectionAnchor ( ) const
int wxStyledTextCtrl::GetRectangularSelectionAnchorVirtualSpace ( ) const
int wxStyledTextCtrl::GetRectangularSelectionCaret ( ) const
int wxStyledTextCtrl::GetRectangularSelectionCaretVirtualSpace ( ) const
int wxStyledTextCtrl::GetRectangularSelectionModifier ( ) const

Get the modifier key used for rectangular selection.

int wxStyledTextCtrl::GetScrollWidth ( ) const

Retrieve the document width assumed for scrolling.

bool wxStyledTextCtrl::GetScrollWidthTracking ( ) const

Retrieve whether the scroll width tracks wide lines.

int wxStyledTextCtrl::GetSearchFlags ( ) const

Get the search flags used by SearchInTarget.

int wxStyledTextCtrl::GetSelAlpha ( ) const

Get the alpha of the selection.

wxString wxStyledTextCtrl::GetSelectedText ( )

Retrieve the selected text.

wxCharBuffer wxStyledTextCtrl::GetSelectedTextRaw ( )

Retrieve the selected text.

virtual void wxStyledTextCtrl::GetSelection ( long *  from,
long *  to 
) const
virtual

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 GetValue() for multiline controls under Windows (at least,) you should use GetStringSelection() to get the selected text.

Parameters
fromThe returned first position.
toThe returned last position.

wxPerl Note: In wxPerl this method takes no parameters and returns a 2-element list (from, to).

Reimplemented from wxTextEntry.

int wxStyledTextCtrl::GetSelectionEnd ( ) const

Returns the position at the end of the selection.

int wxStyledTextCtrl::GetSelectionMode ( ) const

Get the mode of the current selection.

int wxStyledTextCtrl::GetSelectionNAnchor ( int  selection) const
int wxStyledTextCtrl::GetSelectionNAnchorVirtualSpace ( int  selection) const
int wxStyledTextCtrl::GetSelectionNCaret ( int  selection) const
int wxStyledTextCtrl::GetSelectionNCaretVirtualSpace ( int  selection) const
int wxStyledTextCtrl::GetSelectionNEnd ( int  selection) const

Returns the position at the end of the selection.

int wxStyledTextCtrl::GetSelectionNStart ( int  selection) const

Returns the position at the start of the selection.

int wxStyledTextCtrl::GetSelections ( ) const

How many selections are there?

int wxStyledTextCtrl::GetSelectionStart ( ) const

Returns the position at the start of the selection.

bool wxStyledTextCtrl::GetSelEOLFilled ( ) const

Is the selection end of line filled?

int wxStyledTextCtrl::GetStatus ( ) const

Get error status.

int wxStyledTextCtrl::GetSTCCursor ( ) const

Get cursor type.

bool wxStyledTextCtrl::GetSTCFocus ( ) const

Get internal focus flag.

virtual bool wxStyledTextCtrl::GetStyle ( long  position,
wxTextAttr style 
)
virtual
int wxStyledTextCtrl::GetStyleAt ( int  pos) const

Returns the style byte at the position.

int wxStyledTextCtrl::GetStyleBits ( ) const

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

int wxStyledTextCtrl::GetStyleBitsNeeded ( ) const

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

wxMemoryBuffer wxStyledTextCtrl::GetStyledText ( int  startPos,
int  endPos 
)

Retrieve a buffer of cells.

bool wxStyledTextCtrl::GetTabIndents ( ) const

Does a tab pressed when caret is within indentation indent?

int wxStyledTextCtrl::GetTabWidth ( ) const

Retrieve the visible size of a tab.

wxString wxStyledTextCtrl::GetTag ( int  tagNumber) const

Retrieve the value of a tag from a regular expression search.

int wxStyledTextCtrl::GetTargetEnd ( ) const

Get the position that ends the target.

int wxStyledTextCtrl::GetTargetStart ( ) const

Get the position that starts the target.

int wxStyledTextCtrl::GetTechnology ( ) const

Get the tech.

wxString wxStyledTextCtrl::GetText ( ) const

Retrieve all the text in the document.

int wxStyledTextCtrl::GetTextLength ( ) const

Retrieve the number of characters in the document.

wxString wxStyledTextCtrl::GetTextRange ( int  startPos,
int  endPos 
)

Retrieve a range of text.

wxCharBuffer wxStyledTextCtrl::GetTextRangeRaw ( int  startPos,
int  endPos 
)

Retrieve a range of text.

wxCharBuffer wxStyledTextCtrl::GetTextRaw ( )

Retrieve all the text in the document.

bool wxStyledTextCtrl::GetTwoPhaseDraw ( ) const

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

bool wxStyledTextCtrl::GetUndoCollection ( ) const

Is undo history being collected?

bool wxStyledTextCtrl::GetUseHorizontalScrollBar ( ) const

Is the horizontal scroll bar visible?

bool wxStyledTextCtrl::GetUseTabs ( ) const

Retrieve whether tabs will be used in indentation.

bool wxStyledTextCtrl::GetUseVerticalScrollBar ( ) const

Is the vertical scroll bar visible?

bool wxStyledTextCtrl::GetViewEOL ( ) const

Are the end of line characters visible?

int wxStyledTextCtrl::GetViewWhiteSpace ( ) const

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

int wxStyledTextCtrl::GetVirtualSpaceOptions ( ) const
wxString wxStyledTextCtrl::GetWhitespaceChars ( ) const

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

int wxStyledTextCtrl::GetWhitespaceSize ( ) const

Get the size of the dots used to mark space characters.

wxString wxStyledTextCtrl::GetWordChars ( ) const

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

int wxStyledTextCtrl::GetWrapIndentMode ( ) const

Retrieve how wrapped sublines are placed.

Default is fixed.

int wxStyledTextCtrl::GetWrapMode ( ) const

Retrieve whether text is word wrapped.

int wxStyledTextCtrl::GetWrapStartIndent ( ) const

Retrive the start indent for wrapped lines.

int wxStyledTextCtrl::GetWrapVisualFlags ( ) const

Retrive the display mode of visual flags for wrapped lines.

int wxStyledTextCtrl::GetWrapVisualFlagsLocation ( ) const

Retrive the location of visual flags for wrapped lines.

int wxStyledTextCtrl::GetXOffset ( ) const
int wxStyledTextCtrl::GetZoom ( ) const

Retrieve the zoom level.

void wxStyledTextCtrl::GotoLine ( int  line)

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

void wxStyledTextCtrl::GotoPos ( int  pos)

Set caret to a position and ensure it is visible.

void wxStyledTextCtrl::HideLines ( int  lineStart,
int  lineEnd 
)

Make a range of lines invisible.

void wxStyledTextCtrl::HideSelection ( bool  normal)

Draw the selection in normal style or with selection highlighted.

virtual wxTextCtrlHitTestResult wxStyledTextCtrl::HitTest ( const wxPoint pt,
long *  pos 
) const
virtual
virtual wxTextCtrlHitTestResult wxStyledTextCtrl::HitTest ( const wxPoint pt,
wxTextCoord col,
wxTextCoord row 
) const
virtual
void wxStyledTextCtrl::Home ( )

Move caret to first position on line.

void wxStyledTextCtrl::HomeDisplay ( )

Move caret to first position on display line.

void wxStyledTextCtrl::HomeDisplayExtend ( )

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

void wxStyledTextCtrl::HomeExtend ( )

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

void wxStyledTextCtrl::HomeRectExtend ( )

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

void wxStyledTextCtrl::HomeWrap ( )

These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? except they behave differently when word-wrap is enabled: They go first to the start / end of the display line, like (Home|LineEnd)Display The difference is that, the cursor is already at the point, it goes on to the start or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.

void wxStyledTextCtrl::HomeWrapExtend ( )
int wxStyledTextCtrl::IndicatorAllOnFor ( int  position)

Are any indicators present at position?

void wxStyledTextCtrl::IndicatorClearRange ( int  position,
int  clearLength 
)

Turn a indicator off over a range.

int wxStyledTextCtrl::IndicatorEnd ( int  indicator,
int  position 
)

Where does a particular indicator end?

void wxStyledTextCtrl::IndicatorFillRange ( int  position,
int  fillLength 
)

Turn a indicator on over a range.

int wxStyledTextCtrl::IndicatorGetAlpha ( int  indicator) const

Get the alpha fill colour of the given indicator.

wxColour wxStyledTextCtrl::IndicatorGetForeground ( int  indic) const

Retrieve the foreground colour of an indicator.

int wxStyledTextCtrl::IndicatorGetOutlineAlpha ( int  indicator) const

Get the alpha outline colour of the given indicator.

int wxStyledTextCtrl::IndicatorGetStyle ( int  indic) const

Retrieve the style of an indicator.

bool wxStyledTextCtrl::IndicatorGetUnder ( int  indic) const

Retrieve whether indicator drawn under or over text.

void wxStyledTextCtrl::IndicatorSetAlpha ( int  indicator,
int  alpha 
)

Set the alpha fill colour of the given indicator.

void wxStyledTextCtrl::IndicatorSetForeground ( int  indic,
const wxColour fore 
)

Set the foreground colour of an indicator.

void wxStyledTextCtrl::IndicatorSetOutlineAlpha ( int  indicator,
int  alpha 
)

Set the alpha outline colour of the given indicator.

void wxStyledTextCtrl::IndicatorSetStyle ( int  indic,
int  style 
)

Set an indicator to plain, squiggle or TT.

void wxStyledTextCtrl::IndicatorSetUnder ( int  indic,
bool  under 
)

Set an indicator to draw under text or over(default).

int wxStyledTextCtrl::IndicatorStart ( int  indicator,
int  position 
)

Where does a particular indicator start?

int wxStyledTextCtrl::IndicatorValueAt ( int  indicator,
int  position 
)

What value does a particular indicator have at at a position?

void wxStyledTextCtrl::InsertText ( int  pos,
const wxString text 
)

Insert string at a position.

void wxStyledTextCtrl::InsertTextRaw ( int  pos,
const char *  text 
)

Insert string at a position.

virtual bool wxStyledTextCtrl::IsEditable ( ) const
virtual

Returns true if the controls contents may be edited by user (note that it always can be changed by the program).

In other words, this functions returns true if the control hasn't been put in read-only mode by a previous call to SetEditable().

Reimplemented from wxTextEntry.

virtual bool wxStyledTextCtrl::IsModified ( ) const
virtual
void wxStyledTextCtrl::LineCopy ( )

Copy the line containing the caret.

void wxStyledTextCtrl::LineCut ( )

Cut the line containing the caret.

void wxStyledTextCtrl::LineDelete ( )

Delete the line containing the caret.

void wxStyledTextCtrl::LineDown ( )

Move caret down one line.

void wxStyledTextCtrl::LineDownExtend ( )

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

void wxStyledTextCtrl::LineDownRectExtend ( )

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

void wxStyledTextCtrl::LineDuplicate ( )

Duplicate the current line.

void wxStyledTextCtrl::LineEnd ( )

Move caret to last position on line.

void wxStyledTextCtrl::LineEndDisplay ( )

Move caret to last position on display line.

void wxStyledTextCtrl::LineEndDisplayExtend ( )

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

void wxStyledTextCtrl::LineEndExtend ( )

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

void wxStyledTextCtrl::LineEndRectExtend ( )

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

void wxStyledTextCtrl::LineEndWrap ( )
void wxStyledTextCtrl::LineEndWrapExtend ( )
int wxStyledTextCtrl::LineFromPosition ( int  pos) const

Retrieve the line containing a position.

int wxStyledTextCtrl::LineLength ( int  line) const

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

void wxStyledTextCtrl::LineScroll ( int  columns,
int  lines 
)

Scroll horizontally and vertically.

void wxStyledTextCtrl::LineScrollDown ( )

Scroll the document down, keeping the caret visible.

void wxStyledTextCtrl::LineScrollUp ( )

Scroll the document up, keeping the caret visible.

void wxStyledTextCtrl::LinesJoin ( )

Join the lines in the target.

int wxStyledTextCtrl::LinesOnScreen ( ) const

Retrieves the number of lines completely visible.

void wxStyledTextCtrl::LinesSplit ( int  pixelWidth)

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

void wxStyledTextCtrl::LineTranspose ( )

Switch the current line with the previous.

void wxStyledTextCtrl::LineUp ( )

Move caret up one line.

void wxStyledTextCtrl::LineUpExtend ( )

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

void wxStyledTextCtrl::LineUpRectExtend ( )

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

bool wxStyledTextCtrl::LoadFile ( const wxString filename)

Load the contents of filename into the editor.

void wxStyledTextCtrl::LowerCase ( )

Transform the selection to lower case.

int wxStyledTextCtrl::MarginGetStyle ( int  line) const

Get the style number for the text margin for a line.

int wxStyledTextCtrl::MarginGetStyleOffset ( ) const

Get the start of the range of style numbers used for margin text.

wxString wxStyledTextCtrl::MarginGetStyles ( int  line) const

Get the styles in the text margin for a line.

wxString wxStyledTextCtrl::MarginGetText ( int  line) const

Get the text in the text margin for a line.

void wxStyledTextCtrl::MarginSetStyle ( int  line,
int  style 
)

Set the style number for the text margin for a line.

void wxStyledTextCtrl::MarginSetStyleOffset ( int  style)

Get the start of the range of style numbers used for margin text.

void wxStyledTextCtrl::MarginSetStyles ( int  line,
const wxString styles 
)

Set the style in the text margin for a line.

void wxStyledTextCtrl::MarginSetText ( int  line,
const wxString text 
)

Set the text in the text margin for a line.

void wxStyledTextCtrl::MarginTextClearAll ( )

Clear the margin text on all lines.

virtual void wxStyledTextCtrl::MarkDirty ( )
virtual
int wxStyledTextCtrl::MarkerAdd ( int  line,
int  markerNumber 
)

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

void wxStyledTextCtrl::MarkerAddSet ( int  line,
int  set 
)

Add a set of markers to a line.

void wxStyledTextCtrl::MarkerDefine ( int  markerNumber,
int  markerSymbol,
const wxColour foreground = wxNullColour,
const wxColour background = wxNullColour 
)

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

void wxStyledTextCtrl::MarkerDefineBitmap ( int  markerNumber,
const wxBitmap bmp 
)

Define a marker from a bitmap.

void wxStyledTextCtrl::MarkerDefineRGBAImage ( int  markerNumber,
const unsigned char *  pixels 
)

Define a marker from RGBA data.

It has the width and height from RGBAImageSetWidth/Height

void wxStyledTextCtrl::MarkerDelete ( int  line,
int  markerNumber 
)

Delete a marker from a line.

void wxStyledTextCtrl::MarkerDeleteAll ( int  markerNumber)

Delete all markers with a particular number from all lines.

void wxStyledTextCtrl::MarkerDeleteHandle ( int  handle)

Delete a marker.

void wxStyledTextCtrl::MarkerEnableHighlight ( bool  enabled)

Enable/disable highlight for current folding bloc (smallest one that contains the caret)

int wxStyledTextCtrl::MarkerGet ( int  line)

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

int wxStyledTextCtrl::MarkerLineFromHandle ( int  handle)

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

int wxStyledTextCtrl::MarkerNext ( int  lineStart,
int  markerMask 
)

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

Return -1 when no more lines.

int wxStyledTextCtrl::MarkerPrevious ( int  lineStart,
int  markerMask 
)

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

void wxStyledTextCtrl::MarkerSetAlpha ( int  markerNumber,
int  alpha 
)

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

void wxStyledTextCtrl::MarkerSetBackground ( int  markerNumber,
const wxColour back 
)

Set the background colour used for a particular marker number.

void wxStyledTextCtrl::MarkerSetBackgroundSelected ( int  markerNumber,
const wxColour back 
)

Set the background colour used for a particular marker number when its folding block is selected.

void wxStyledTextCtrl::MarkerSetForeground ( int  markerNumber,
const wxColour fore 
)

Set the foreground colour used for a particular marker number.

void wxStyledTextCtrl::MoveCaretInsideView ( )

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

void wxStyledTextCtrl::MoveSelectedLinesDown ( )

Move the selected lines down one line, shifting the line below before the selection.

void wxStyledTextCtrl::MoveSelectedLinesUp ( )

Move the selected lines up one line, shifting the line above after the selection.

void wxStyledTextCtrl::NewLine ( )

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

void wxStyledTextCtrl::PageDown ( )

Move caret one page down.

void wxStyledTextCtrl::PageDownExtend ( )

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

void wxStyledTextCtrl::PageDownRectExtend ( )

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

void wxStyledTextCtrl::PageUp ( )

Move caret one page up.

void wxStyledTextCtrl::PageUpExtend ( )

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

void wxStyledTextCtrl::PageUpRectExtend ( )

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

void wxStyledTextCtrl::ParaDown ( )

Move caret between paragraphs (delimited by empty lines).

void wxStyledTextCtrl::ParaDownExtend ( )
void wxStyledTextCtrl::ParaUp ( )
void wxStyledTextCtrl::ParaUpExtend ( )
void wxStyledTextCtrl::Paste ( )
virtual

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

Reimplemented from wxTextEntry.

wxPoint wxStyledTextCtrl::PointFromPosition ( int  pos)

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

int wxStyledTextCtrl::PositionAfter ( int  pos)

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

Maximum value returned is the last position in the document.

int wxStyledTextCtrl::PositionBefore ( int  pos)

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

Returns 0 if passed 0.

int wxStyledTextCtrl::PositionFromLine ( int  line) const

Retrieve the position at the start of a line.

int wxStyledTextCtrl::PositionFromPoint ( wxPoint  pt) const

Find the position from a point within the window.

int wxStyledTextCtrl::PositionFromPointClose ( int  x,
int  y 
)

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

virtual bool wxStyledTextCtrl::PositionToXY ( long  pos,
long *  x,
long *  y 
) const
virtual
void* wxStyledTextCtrl::PrivateLexerCall ( int  operation,
void *  pointer 
)

For private communication between an application and a known lexer.

wxString wxStyledTextCtrl::PropertyNames ( ) const

Retrieve a '
' separated list of properties understood by the current lexer.

int wxStyledTextCtrl::PropertyType ( const wxString name)

Retrieve the type of a property.

void wxStyledTextCtrl::Redo ( )
virtual

Redoes the next action on the undo history.

Reimplemented from wxTextEntry.

void wxStyledTextCtrl::RegisterImage ( int  type,
const wxBitmap bmp 
)

Register an image for use in autocompletion lists.

void wxStyledTextCtrl::RegisterRGBAImage ( int  type,
const unsigned char *  pixels 
)

Register an RGBA image for use in autocompletion lists.

It has the width and height from RGBAImageSetWidth/Height

void wxStyledTextCtrl::ReleaseDocument ( void *  docPointer)

Release a reference to the document, deleting document if it fades to black.

virtual void wxStyledTextCtrl::Remove ( long  from,
long  to 
)
virtual

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

This function puts the current insertion point position at to as a side effect.

Parameters
fromThe first position.
toThe last position.

Reimplemented from wxTextEntry.

virtual void wxStyledTextCtrl::Replace ( long  from,
long  to,
const wxString value 
)
virtual

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

This function puts the current insertion point position at to as a side effect.

Parameters
fromThe first position.
toThe last position.
valueThe value to replace the existing text with.

Reimplemented from wxTextEntry.

void wxStyledTextCtrl::ReplaceSelection ( const wxString text)

Replace the selected text with the argument text.

int wxStyledTextCtrl::ReplaceTarget ( const wxString text)

Replace the target text with the argument text.

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

int wxStyledTextCtrl::ReplaceTargetRE ( const wxString text)

Replace the target text with the argument text after \d processing.

Text is counted so it can contain NULs. Looks for \d where d is between 1 and 9 and replaces these with the strings matched in the last search operation which were surrounded by ( and ). Returns the length of the replacement text including any change caused by processing the \d patterns.

void wxStyledTextCtrl::RGBAImageSetHeight ( int  height)

Set the height for future RGBA image data.

void wxStyledTextCtrl::RGBAImageSetWidth ( int  width)

Set the width for future RGBA image data.

void wxStyledTextCtrl::RotateSelection ( )

Set the main selection to the next selection.

bool wxStyledTextCtrl::SaveFile ( const wxString filename)

Write the contents of the editor to filename.

void wxStyledTextCtrl::ScrollToColumn ( int  column)

Scroll enough to make the given column visible.

void wxStyledTextCtrl::ScrollToEnd ( )

Scroll to end of document.

void wxStyledTextCtrl::ScrollToLine ( int  line)

Scroll enough to make the given line visible.

void wxStyledTextCtrl::ScrollToStart ( )

Scroll to start of document.

void wxStyledTextCtrl::SearchAnchor ( )

Sets the current caret position to be the search anchor.

int wxStyledTextCtrl::SearchInTarget ( const wxString text)

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.

int wxStyledTextCtrl::SearchNext ( int  flags,
const wxString text 
)

Find some text starting at the search anchor.

Does not ensure the selection is visible.

int wxStyledTextCtrl::SearchPrev ( int  flags,
const wxString text 
)

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

Does not ensure the selection is visible.

void wxStyledTextCtrl::SelectAll ( )
virtual

Select all the text in the document.

Reimplemented from wxTextEntry.

void wxStyledTextCtrl::SelectionDuplicate ( )

Duplicate the selection.

If selection empty duplicate the line containing the caret.

bool wxStyledTextCtrl::SelectionIsRectangle ( ) const

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

virtual void wxStyledTextCtrl::SelectNone ( )
virtual

Deselects selected text in the control.

Since
2.9.5

Reimplemented from wxTextEntry.

wxIntPtr wxStyledTextCtrl::SendMsg ( int  msg,
wxUIntPtr  wp = 0,
wxIntPtr  lp = 0 
) const

Send a message to Scintilla.

void wxStyledTextCtrl::SetAdditionalCaretForeground ( const wxColour fore)

Set the foreground colour of additional carets.

void wxStyledTextCtrl::SetAdditionalCaretsBlink ( bool  additionalCaretsBlink)

Set whether additional carets will blink.

void wxStyledTextCtrl::SetAdditionalCaretsVisible ( bool  additionalCaretsBlink)

Set whether additional carets are visible.

void wxStyledTextCtrl::SetAdditionalSelAlpha ( int  alpha)

Set the alpha of the selection.

void wxStyledTextCtrl::SetAdditionalSelBackground ( const wxColour back)

Set the background colour of additional selections.

Must have previously called SetSelBack with non-zero first argument for this to have an effect.

void wxStyledTextCtrl::SetAdditionalSelectionTyping ( bool  additionalSelectionTyping)

Set whether typing can be performed into multiple selections.

void wxStyledTextCtrl::SetAdditionalSelForeground ( const wxColour fore)

Set the foreground colour of additional selections.

Must have previously called SetSelFore with non-zero first argument for this to have an effect.

void wxStyledTextCtrl::SetAnchor ( int  posAnchor)

Set the selection anchor to a position.

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

void wxStyledTextCtrl::SetBackSpaceUnIndents ( bool  bsUnIndents)

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

void wxStyledTextCtrl::SetBufferedDraw ( bool  buffered)

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

void wxStyledTextCtrl::SetCaretForeground ( const wxColour fore)

Set the foreground colour of the caret.

void wxStyledTextCtrl::SetCaretLineBackAlpha ( int  alpha)

Set background alpha of the caret line.

void wxStyledTextCtrl::SetCaretLineBackground ( const wxColour back)

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

void wxStyledTextCtrl::SetCaretLineVisible ( bool  show)

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

void wxStyledTextCtrl::SetCaretPeriod ( int  periodMilliseconds)

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

0 = steady on.

void wxStyledTextCtrl::SetCaretSticky ( int  useCaretStickyBehaviour)

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

void wxStyledTextCtrl::SetCaretStyle ( int  caretStyle)

Set the style of the caret to be drawn.

void wxStyledTextCtrl::SetCaretWidth ( int  pixelWidth)

Set the width of the insert mode caret.

void wxStyledTextCtrl::SetCharsDefault ( )

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

void wxStyledTextCtrl::SetCodePage ( int  codePage)

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

void wxStyledTextCtrl::SetControlCharSymbol ( int  symbol)

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

void wxStyledTextCtrl::SetCurrentPos ( int  pos)

Sets the position of the caret.

virtual bool wxStyledTextCtrl::SetDefaultStyle ( const wxTextAttr style)
virtual
void wxStyledTextCtrl::SetDocPointer ( void *  docPointer)

Change the document object used.

void wxStyledTextCtrl::SetEdgeColour ( const wxColour edgeColour)

Change the colour used in edge indication.

void wxStyledTextCtrl::SetEdgeColumn ( int  column)

Set the column number of the edge.

If text goes past the edge then it is highlighted.

void wxStyledTextCtrl::SetEdgeMode ( int  mode)

The edge may be displayed by a line (EDGE_LINE) or by highlighting text that goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE).

virtual void wxStyledTextCtrl::SetEditable ( bool  editable)
virtual

Makes the text item editable or read-only, overriding the wxTE_READONLY flag.

Parameters
editableIf true, the control is editable. If false, the control is read-only.
See also
IsEditable()

Reimplemented from wxTextEntry.

void wxStyledTextCtrl::SetEmptySelection ( int  pos)

Set caret to a position, while removing any existing selection.

void wxStyledTextCtrl::SetEndAtLastLine ( bool  endAtLastLine)

Sets the scroll range so that maximum scroll position has the last line at the bottom of the view (default).

Setting this to false allows scrolling one page below the last line.

void wxStyledTextCtrl::SetEOLMode ( int  eolMode)

Set the current end of line mode.

void wxStyledTextCtrl::SetExtraAscent ( int  extraAscent)

Set extra ascent for each line.

void wxStyledTextCtrl::SetExtraDescent ( int  extraDescent)

Set extra descent for each line.

void wxStyledTextCtrl::SetFirstVisibleLine ( int  lineDisplay)

Scroll so that a display line is at the top of the display.

void wxStyledTextCtrl::SetFoldExpanded ( int  line,
bool  expanded 
)

Show the children of a header line.

void wxStyledTextCtrl::SetFoldFlags ( int  flags)

Set some style options for folding.

void wxStyledTextCtrl::SetFoldLevel ( int  line,
int  level 
)

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.

void wxStyledTextCtrl::SetFoldMarginColour ( bool  useSetting,
const wxColour back 
)

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

void wxStyledTextCtrl::SetFoldMarginHiColour ( bool  useSetting,
const wxColour fore 
)
void wxStyledTextCtrl::SetHighlightGuide ( int  column)

Set the highlighted indentation guide column.

0 = no highlighted guide.

void wxStyledTextCtrl::SetHotspotActiveBackground ( bool  useSetting,
const wxColour back 
)

Set a back colour for active hotspots.

void wxStyledTextCtrl::SetHotspotActiveForeground ( bool  useSetting,
const wxColour fore 
)

Set a fore colour for active hotspots.

void wxStyledTextCtrl::SetHotspotActiveUnderline ( bool  underline)

Enable / Disable underlining active hotspots.

void wxStyledTextCtrl::SetHotspotSingleLine ( bool  singleLine)

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

void wxStyledTextCtrl::SetHScrollBar ( wxScrollBar bar)

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

void wxStyledTextCtrl::SetIdentifier ( int  identifier)

Set the identifier reported as idFrom in notification messages.

void wxStyledTextCtrl::SetIndent ( int  indentSize)

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

void wxStyledTextCtrl::SetIndentationGuides ( int  indentView)

Show or hide indentation guides.

void wxStyledTextCtrl::SetIndicatorCurrent ( int  indicator)

Set the indicator used for IndicatorFillRange and IndicatorClearRange.

void wxStyledTextCtrl::SetIndicatorValue ( int  value)

Set the value used for IndicatorFillRange.

virtual void wxStyledTextCtrl::SetInsertionPoint ( long  pos)
virtual

Sets the insertion point at the given position.

Parameters
posPosition to set, in the range from 0 to GetLastPosition() inclusive.

Reimplemented from wxTextEntry.

void wxStyledTextCtrl::SetKeysUnicode ( bool  keysUnicode)

Always interpret keyboard input as Unicode.

void wxStyledTextCtrl::SetKeyWords ( int  keywordSet,
const wxString keyWords 
)

Set up the key words used by the lexer.

void wxStyledTextCtrl::SetLastKeydownProcessed ( bool  val)
void wxStyledTextCtrl::SetLayoutCache ( int  mode)

Sets the degree of caching of layout information.

void wxStyledTextCtrl::SetLexer ( int  lexer)

Set the lexing language of the document.

void wxStyledTextCtrl::SetLexerLanguage ( const wxString language)

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

void wxStyledTextCtrl::SetLineIndentation ( int  line,
int  indentSize 
)

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

void wxStyledTextCtrl::SetLineState ( int  line,
int  state 
)

Used to hold extra styling information for each line.

void wxStyledTextCtrl::SetMainSelection ( int  selection)

Set the main selection.

void wxStyledTextCtrl::SetMarginCursor ( int  margin,
int  cursor 
)

Set the cursor shown when the mouse is inside a margin.

void wxStyledTextCtrl::SetMarginLeft ( int  pixelWidth)

Sets the size in pixels of the left margin.

void wxStyledTextCtrl::SetMarginMask ( int  margin,
int  mask 
)

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

void wxStyledTextCtrl::SetMarginOptions ( int  marginOptions)

Set the margin options.

void wxStyledTextCtrl::SetMarginRight ( int  pixelWidth)

Sets the size in pixels of the right margin.

void wxStyledTextCtrl::SetMargins ( int  left,
int  right 
)

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

void wxStyledTextCtrl::SetMarginSensitive ( int  margin,
bool  sensitive 
)

Make a margin sensitive or insensitive to mouse clicks.

void wxStyledTextCtrl::SetMarginType ( int  margin,
int  marginType 
)

Set a margin to be either numeric or symbolic.

void wxStyledTextCtrl::SetMarginWidth ( int  margin,
int  pixelWidth 
)

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

void wxStyledTextCtrl::SetModEventMask ( int  mask)

Set which document modification events are sent to the container.

void wxStyledTextCtrl::SetMouseDownCaptures ( bool  captures)

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

void wxStyledTextCtrl::SetMouseDwellTime ( int  periodMilliseconds)

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

void wxStyledTextCtrl::SetMultiPaste ( int  multiPaste)

Change the effect of pasting when there are multiple selections.

void wxStyledTextCtrl::SetMultipleSelection ( bool  multipleSelection)

Set whether multiple selections can be made.

void wxStyledTextCtrl::SetOvertype ( bool  overtype)

Set to overtype (true) or insert mode.

void wxStyledTextCtrl::SetPasteConvertEndings ( bool  convert)

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

void wxStyledTextCtrl::SetPositionCacheSize ( int  size)

Set number of entries in position cache.

void wxStyledTextCtrl::SetPrintColourMode ( int  mode)

Modify colours when printing for clearer printed text.

void wxStyledTextCtrl::SetPrintMagnification ( int  magnification)

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

void wxStyledTextCtrl::SetPrintWrapMode ( int  mode)

Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE).

void wxStyledTextCtrl::SetProperty ( const wxString key,
const wxString value 
)

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

void wxStyledTextCtrl::SetPunctuationChars ( const wxString characters)

Set the set of characters making up punctuation characters Should be called after SetWordChars.

void wxStyledTextCtrl::SetReadOnly ( bool  readOnly)

Set to read only or read write.

void wxStyledTextCtrl::SetRectangularSelectionAnchor ( int  posAnchor)
void wxStyledTextCtrl::SetRectangularSelectionAnchorVirtualSpace ( int  space)
void wxStyledTextCtrl::SetRectangularSelectionCaret ( int  pos)
void wxStyledTextCtrl::SetRectangularSelectionCaretVirtualSpace ( int  space)
void wxStyledTextCtrl::SetRectangularSelectionModifier ( int  modifier)

On GTK+, allow selecting the modifier key to use for mouse-based rectangular selection.

Often the window manager requires Alt+Mouse Drag for moving windows. Valid values are SCMOD_CTRL(default), SCMOD_ALT, or SCMOD_SUPER.

void wxStyledTextCtrl::SetSavePoint ( )

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

void wxStyledTextCtrl::SetScrollWidth ( int  pixelWidth)

Sets the document width assumed for scrolling.

void wxStyledTextCtrl::SetScrollWidthTracking ( bool  tracking)

Sets whether the maximum width line displayed is used to set scroll width.

void wxStyledTextCtrl::SetSearchFlags ( int  flags)

Set the search flags used by SearchInTarget.

void wxStyledTextCtrl::SetSelAlpha ( int  alpha)

Set the alpha of the selection.

void wxStyledTextCtrl::SetSelBackground ( bool  useSetting,
const wxColour back 
)

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

virtual void wxStyledTextCtrl::SetSelection ( long  from,
long  to 
)
virtual

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.

Parameters
fromThe first position.
toThe last position.
See also
SelectAll()

Reimplemented from wxTextEntry.

void wxStyledTextCtrl::SetSelectionEnd ( int  pos)

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

void wxStyledTextCtrl::SetSelectionMode ( int  mode)

Set the selection mode to stream (SC_SEL_STREAM) or rectangular (SC_SEL_RECTANGLE/SC_SEL_THIN) or by lines (SC_SEL_LINES).

void wxStyledTextCtrl::SetSelectionNAnchor ( int  selection,
int  posAnchor 
)
void wxStyledTextCtrl::SetSelectionNAnchorVirtualSpace ( int  selection,
int  space 
)
void wxStyledTextCtrl::SetSelectionNCaret ( int  selection,
int  pos 
)
void wxStyledTextCtrl::SetSelectionNCaretVirtualSpace ( int  selection,
int  space 
)
void wxStyledTextCtrl::SetSelectionNEnd ( int  selection,
int  pos 
)

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

void wxStyledTextCtrl::SetSelectionNStart ( int  selection,
int  pos 
)

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

void wxStyledTextCtrl::SetSelectionStart ( int  pos)

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

void wxStyledTextCtrl::SetSelEOLFilled ( bool  filled)

Set the selection to have its end of line filled or not.

void wxStyledTextCtrl::SetSelForeground ( bool  useSetting,
const wxColour fore 
)

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

void wxStyledTextCtrl::SetStatus ( int  statusCode)

Change error status - 0 = OK.

void wxStyledTextCtrl::SetSTCCursor ( int  cursorType)

Sets the cursor to one of the SC_CURSOR* values.

void wxStyledTextCtrl::SetSTCFocus ( bool  focus)

Change internal focus flag.

virtual bool wxStyledTextCtrl::SetStyle ( long  start,
long  end,
const wxTextAttr style 
)
virtual
void wxStyledTextCtrl::SetStyleBits ( int  bits)

Divide each styling byte into lexical class bits (default: 5) and indicator bits (default: 3).

If a lexer requires more than 32 lexical states, then this is used to expand the possible states.

void wxStyledTextCtrl::SetStyleBytes ( int  length,
char *  styleBytes 
)

Set the styles for a segment of the document.

void wxStyledTextCtrl::SetStyling ( int  length,
int  style 
)

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

void wxStyledTextCtrl::SetTabIndents ( bool  tabIndents)

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

void wxStyledTextCtrl::SetTabWidth ( int  tabWidth)

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

void wxStyledTextCtrl::SetTargetEnd ( int  pos)

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

void wxStyledTextCtrl::SetTargetStart ( int  pos)

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

void wxStyledTextCtrl::SetTechnology ( int  technology)

Set the technology used.

void wxStyledTextCtrl::SetText ( const wxString text)

Replace the contents of the document with the argument text.

void wxStyledTextCtrl::SetTextRaw ( const char *  text)

Replace the contents of the document with the argument text.

void wxStyledTextCtrl::SetTwoPhaseDraw ( bool  twoPhase)

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.

void wxStyledTextCtrl::SetUndoCollection ( bool  collectUndo)

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

void wxStyledTextCtrl::SetUseHorizontalScrollBar ( bool  show)

Show or hide the horizontal scroll bar.

void wxStyledTextCtrl::SetUseTabs ( bool  useTabs)

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

void wxStyledTextCtrl::SetUseVerticalScrollBar ( bool  show)

Show or hide the vertical scroll bar.

void wxStyledTextCtrl::SetViewEOL ( bool  visible)

Make the end of line characters visible or invisible.

void wxStyledTextCtrl::SetViewWhiteSpace ( int  viewWS)

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

void wxStyledTextCtrl::SetVirtualSpaceOptions ( int  virtualSpaceOptions)
void wxStyledTextCtrl::SetVisiblePolicy ( int  visiblePolicy,
int  visibleSlop 
)

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

void wxStyledTextCtrl::SetVScrollBar ( wxScrollBar bar)

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

void wxStyledTextCtrl::SetWhitespaceBackground ( bool  useSetting,
const wxColour back 
)

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

void wxStyledTextCtrl::SetWhitespaceChars ( const wxString characters)

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

Should be called after SetWordChars.

void wxStyledTextCtrl::SetWhitespaceForeground ( bool  useSetting,
const wxColour fore 
)

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

void wxStyledTextCtrl::SetWhitespaceSize ( int  size)

Set the size of the dots used to mark space characters.

void wxStyledTextCtrl::SetWordChars ( const wxString characters)

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

First sets defaults like SetCharsDefault.

void wxStyledTextCtrl::SetWrapIndentMode ( int  mode)

Sets how wrapped sublines are placed.

Default is fixed.

void wxStyledTextCtrl::SetWrapMode ( int  mode)

Sets whether text is word wrapped.

void wxStyledTextCtrl::SetWrapStartIndent ( int  indent)

Set the start indent for wrapped lines.

void wxStyledTextCtrl::SetWrapVisualFlags ( int  wrapVisualFlags)

Set the display mode of visual flags for wrapped lines.

void wxStyledTextCtrl::SetWrapVisualFlagsLocation ( int  wrapVisualFlagsLocation)

Set the location of visual flags for wrapped lines.

void wxStyledTextCtrl::SetXCaretPolicy ( int  caretPolicy,
int  caretSlop 
)

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

The exclusion zone is given in pixels.

void wxStyledTextCtrl::SetXOffset ( int  newOffset)

Get and Set the xOffset (ie, horizontal scroll position).

void wxStyledTextCtrl::SetYCaretPolicy ( int  caretPolicy,
int  caretSlop 
)

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

The exclusion zone is given in lines.

void wxStyledTextCtrl::SetZoom ( int  zoom)

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.

void wxStyledTextCtrl::ShowLines ( int  lineStart,
int  lineEnd 
)

Make a range of lines visible.

virtual void wxStyledTextCtrl::ShowPosition ( long  pos)
virtual
void wxStyledTextCtrl::StartRecord ( )

Start notifying the container of all key presses and commands.

void wxStyledTextCtrl::StartStyling ( int  pos,
int  mask 
)

Set the current styling position to pos and the styling mask to mask.

The styling mask can be used to protect some bits in each styling byte from modification.

void wxStyledTextCtrl::StopRecord ( )

Stop notifying the container of all key presses and commands.

void wxStyledTextCtrl::StutteredPageDown ( )

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

void wxStyledTextCtrl::StutteredPageDownExtend ( )

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

void wxStyledTextCtrl::StutteredPageUp ( )

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

void wxStyledTextCtrl::StutteredPageUpExtend ( )

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

void wxStyledTextCtrl::StyleClearAll ( )

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

wxColour wxStyledTextCtrl::StyleGetBackground ( int  style) const

Get the background colour of a style.

bool wxStyledTextCtrl::StyleGetBold ( int  style) const

Get is a style bold or not.

int wxStyledTextCtrl::StyleGetCase ( int  style) const

Get is a style mixed case, or to force upper or lower case.

bool wxStyledTextCtrl::StyleGetChangeable ( int  style) const

Get is a style changeable or not (read only).

Experimental feature, currently buggy.

int wxStyledTextCtrl::StyleGetCharacterSet ( int  style) const

Get the character set of the font in a style.

bool wxStyledTextCtrl::StyleGetEOLFilled ( int  style) const

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

wxString wxStyledTextCtrl::StyleGetFaceName ( int  style)

Get the font facename of a style.

wxFont wxStyledTextCtrl::StyleGetFont ( int  style)

Get the font of a style.

wxColour wxStyledTextCtrl::StyleGetForeground ( int  style) const

Get the foreground colour of a style.

bool wxStyledTextCtrl::StyleGetHotSpot ( int  style) const

Get is a style a hotspot or not.

bool wxStyledTextCtrl::StyleGetItalic ( int  style) const

Get is a style italic or not.

int wxStyledTextCtrl::StyleGetSize ( int  style) const

Get the size of characters of a style.

int wxStyledTextCtrl::StyleGetSizeFractional ( int  style) const

Get the size of characters of a style in points multiplied by 100.

bool wxStyledTextCtrl::StyleGetUnderline ( int  style) const

Get is a style underlined or not.

bool wxStyledTextCtrl::StyleGetVisible ( int  style) const

Get is a style visible or not.

int wxStyledTextCtrl::StyleGetWeight ( int  style) const

Get the weight of characters of a style.

void wxStyledTextCtrl::StyleResetDefault ( )

Reset the default style to its state at startup.

void wxStyledTextCtrl::StyleSetBackground ( int  style,
const wxColour back 
)

Set the background colour of a style.

void wxStyledTextCtrl::StyleSetBold ( int  style,
bool  bold 
)

Set a style to be bold or not.

void wxStyledTextCtrl::StyleSetCase ( int  style,
int  caseForce 
)

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

void wxStyledTextCtrl::StyleSetChangeable ( int  style,
bool  changeable 
)

Set a style to be changeable or not (read only).

Experimental feature, currently buggy.

void wxStyledTextCtrl::StyleSetCharacterSet ( int  style,
int  characterSet 
)

Set the character set of the font in a style.

Converts the Scintilla character set values to a wxFontEncoding.

void wxStyledTextCtrl::StyleSetEOLFilled ( int  style,
bool  filled 
)

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

void wxStyledTextCtrl::StyleSetFaceName ( int  style,
const wxString fontName 
)

Set the font of a style.

void wxStyledTextCtrl::StyleSetFont ( int  styleNum,
wxFont font 
)

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

void wxStyledTextCtrl::StyleSetFontAttr ( int  styleNum,
int  size,
const wxString faceName,
bool  bold,
bool  italic,
bool  underline,
wxFontEncoding  encoding = wxFONTENCODING_DEFAULT 
)

Set all font style attributes at once.

void wxStyledTextCtrl::StyleSetFontEncoding ( int  style,
wxFontEncoding  encoding 
)

Set the font encoding to be used by a style.

void wxStyledTextCtrl::StyleSetForeground ( int  style,
const wxColour fore 
)

Set the foreground colour of a style.

void wxStyledTextCtrl::StyleSetHotSpot ( int  style,
bool  hotspot 
)

Set a style to be a hotspot or not.

void wxStyledTextCtrl::StyleSetItalic ( int  style,
bool  italic 
)

Set a style to be italic or not.

void wxStyledTextCtrl::StyleSetSize ( int  style,
int  sizePoints 
)

Set the size of characters of a style.

void wxStyledTextCtrl::StyleSetSizeFractional ( int  style,
int  caseForce 
)

Set the size of characters of a style.

Size is in points multiplied by 100.

void wxStyledTextCtrl::StyleSetSpec ( int  styleNum,
const wxString spec 
)

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

void wxStyledTextCtrl::StyleSetUnderline ( int  style,
bool  underline 
)

Set a style to be underlined or not.

void wxStyledTextCtrl::StyleSetVisible ( int  style,
bool  visible 
)

Set a style to be visible or not.

void wxStyledTextCtrl::StyleSetWeight ( int  style,
int  weight 
)

Set the weight of characters of a style.

void wxStyledTextCtrl::SwapMainAnchorCaret ( )

Swap that caret and anchor of the main selection.

void wxStyledTextCtrl::Tab ( )

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.

void wxStyledTextCtrl::TargetFromSelection ( )

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

int wxStyledTextCtrl::TextHeight ( int  line)

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

int wxStyledTextCtrl::TextWidth ( int  style,
const wxString text 
)

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

NUL terminated text argument. Does not handle tab or control characters.

void wxStyledTextCtrl::ToggleCaretSticky ( )

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

void wxStyledTextCtrl::ToggleFold ( int  line)

Switch a header line between expanded and contracted.

void wxStyledTextCtrl::Undo ( )
virtual

Undo one action in the undo history.

Reimplemented from wxTextEntry.

void wxStyledTextCtrl::UpperCase ( )

Transform the selection to upper case.

void wxStyledTextCtrl::UsePopUp ( bool  allowPopUp)

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

void wxStyledTextCtrl::UserListShow ( int  listType,
const wxString itemList 
)

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

void wxStyledTextCtrl::VCHome ( )

Move caret to before first visible character on line.

If already there move to first character on line.

void wxStyledTextCtrl::VCHomeExtend ( )

Like VCHome but extending selection to new caret position.

void wxStyledTextCtrl::VCHomeRectExtend ( )

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.

void wxStyledTextCtrl::VCHomeWrap ( )
void wxStyledTextCtrl::VCHomeWrapExtend ( )
void wxStyledTextCtrl::VerticalCentreCaret ( )

Centre current line in window.

int wxStyledTextCtrl::VisibleFromDocLine ( int  line)

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

int wxStyledTextCtrl::WordEndPosition ( int  pos,
bool  onlyWordCharacters 
)

Get position of end of word.

void wxStyledTextCtrl::WordLeft ( )

Move caret left one word.

void wxStyledTextCtrl::WordLeftEnd ( )

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

void wxStyledTextCtrl::WordLeftEndExtend ( )

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

void wxStyledTextCtrl::WordLeftExtend ( )

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

void wxStyledTextCtrl::WordPartLeft ( )

Move to the previous change in capitalisation.

void wxStyledTextCtrl::WordPartLeftExtend ( )

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

void wxStyledTextCtrl::WordPartRight ( )

Move to the change next in capitalisation.

void wxStyledTextCtrl::WordPartRightExtend ( )

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

void wxStyledTextCtrl::WordRight ( )

Move caret right one word.

void wxStyledTextCtrl::WordRightEnd ( )

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

void wxStyledTextCtrl::WordRightEndExtend ( )

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

void wxStyledTextCtrl::WordRightExtend ( )

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

int wxStyledTextCtrl::WordStartPosition ( int  pos,
bool  onlyWordCharacters 
)

Get position of start of word.

int wxStyledTextCtrl::WrapCount ( int  line)

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

virtual void wxStyledTextCtrl::WriteText ( const wxString text)
virtual

Writes the text into the text control at the current insertion position.

Parameters
textText to write to the text control.
Remarks
Newlines in the text string are the only control characters allowed, and they will cause appropriate line breaks. See operator<<() and AppendText() for more convenient ways of writing to the window. After the write operation, the insertion point will be at the end of the inserted text, so subsequent write operations will be appended. To append text after the user may have interacted with the control, call wxTextCtrl::SetInsertionPointEnd() before writing.

Reimplemented from wxTextEntry.

virtual long wxStyledTextCtrl::XYToPosition ( long  x,
long  y 
) const
virtual
void wxStyledTextCtrl::ZoomIn ( )

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

void wxStyledTextCtrl::ZoomOut ( )

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