#include <wx/richtext/richtextctrl.h>
wxRichTextCtrl sends notification events: see wxRichTextEvent.
It also sends the standard wxTextCtrl events wxEVT_COMMAND_TEXT_ENTER and wxEVT_COMMAND_TEXT_UPDATED, and wxTextUrlEvent when URL content is clicked.
For more information, see the wxRichTextCtrl Overview.
![]() | ![]() | ![]() |
| wxMSW appearance | wxGTK appearance | wxMac appearance |
Public Member Functions | |
| wxRichTextCtrl () | |
| wxRichTextCtrl (wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &value=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxRE_MULTILINE, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxTextCtrlNameStr) | |
| virtual | ~wxRichTextCtrl () |
| virtual wxRichTextRange | AddImage (const wxImage &image) |
| virtual wxRichTextRange | AddParagraph (const wxString &text) |
| virtual void | AppendText (const wxString &text) |
| virtual bool | ApplyAlignmentToSelection (wxTextAttrAlignment alignment) |
| virtual bool | ApplyBoldToSelection () |
| virtual bool | ApplyItalicToSelection () |
| virtual bool | ApplyStyle (wxRichTextStyleDefinition *def) |
| bool | ApplyStyleSheet (wxRichTextStyleSheet *sheet=NULL) |
| virtual bool | ApplyUnderlineToSelection () |
| virtual bool | BatchingUndo () const |
| bool | BeginAlignment (wxTextAttrAlignment alignment) |
| virtual bool | BeginBatchUndo (const wxString &cmdName) |
| bool | BeginBold () |
| bool | BeginCharacterStyle (const wxString &characterStyle) |
| bool | BeginFont (const wxFont &font) |
| bool | BeginFontSize (int pointSize) |
| bool | BeginItalic () |
| bool | BeginLeftIndent (int leftIndent, int leftSubIndent=0) |
| bool | BeginLineSpacing (int lineSpacing) |
| bool | BeginListStyle (const wxString &listStyle, int level=1, int number=1) |
| bool | BeginNumberedBullet (int bulletNumber, int leftIndent, int leftSubIndent, int bulletStyle=wxTEXT_ATTR_BULLET_STYLE_ARABIC|wxTEXT_ATTR_BULLET_STYLE_PERIOD) |
| bool | BeginParagraphSpacing (int before, int after) |
| bool | BeginParagraphStyle (const wxString ¶graphStyle) |
| bool | BeginRightIndent (int rightIndent) |
| virtual bool | BeginStyle (const wxTextAttr &style) |
| virtual bool | BeginSuppressUndo () |
| bool | BeginSymbolBullet (const wxString &symbol, int leftIndent, int leftSubIndent, int bulletStyle=wxTEXT_ATTR_BULLET_STYLE_SYMBOL) |
| bool | BeginTextColour (const wxColour &colour) |
| bool | BeginURL (const wxString &url, const wxString &characterStyle=wxEmptyString) |
| bool | BeginUnderline () |
| virtual bool | CanCopy () const |
| virtual bool | CanCut () const |
| virtual bool | CanDeleteSelection () const |
| virtual bool | CanPaste () const |
| virtual bool | CanRedo () const |
| virtual bool | CanUndo () const |
| virtual void | Clear () |
| virtual void | Command (wxCommandEvent &event) |
| virtual void | Copy () |
| bool | Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &value=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxRE_MULTILINE, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxTextCtrlNameStr) |
| virtual void | Cut () |
| virtual bool | Delete (const wxRichTextRange &range) |
| bool | DeleteSelectedContent (long *newPos=NULL) |
| virtual void | DeleteSelection () |
| virtual void | DiscardEdits () |
| bool | EndAlignment () |
| virtual bool | EndAllStyles () |
| virtual bool | EndBatchUndo () |
| bool | EndBold () |
| bool | EndCharacterStyle () |
| bool | EndFont () |
| bool | EndFontSize () |
| bool | EndItalic () |
| bool | EndLeftIndent () |
| bool | EndLineSpacing () |
| bool | EndListStyle () |
| bool | EndNumberedBullet () |
| bool | EndParagraphSpacing () |
| bool | EndParagraphStyle () |
| bool | EndRightIndent () |
| virtual bool | EndStyle () |
| virtual bool | EndSuppressUndo () |
| bool | EndSymbolBullet () |
| bool | EndTextColour () |
| bool | EndURL () |
| bool | EndUnderline () |
| virtual bool | ExtendSelection (long oldPosition, long newPosition, int flags) |
| virtual long | FindNextWordPosition (int direction=1) const |
| void | Freeze () |
| virtual const wxTextAttr & | GetBasicStyle () const |
| long | GetCaretPosition () const |
| bool | GetCaretPositionForIndex (long position, wxRect &rect) |
| wxCommandProcessor * | GetCommandProcessor () const |
| virtual const wxTextAttr & | GetDefaultStyle () const |
| long | GetDelayedLayoutThreshold () const |
| wxString | GetFilename () const |
| long | GetFirstVisiblePosition () const |
| int | GetHandlerFlags () const |
| virtual long | GetInsertionPoint () const |
| virtual wxTextPos | GetLastPosition () const |
| virtual int | GetLineLength (long lineNo) const |
| virtual wxString | GetLineText (long lineNo) const |
| wxPoint | GetLogicalPoint (const wxPoint &ptPhysical) const |
| virtual int | GetNumberOfLines () const |
| wxPoint | GetPhysicalPoint (const wxPoint &ptLogical) const |
| virtual wxString | GetRange (long from, long to) const |
| virtual void | GetSelection (long *from, long *to) const |
| wxRichTextRange | GetSelectionRange () const |
| virtual wxString | GetStringSelection () const |
| virtual bool | GetStyle (long position, wxTextAttr &style) |
| virtual bool | GetStyleForRange (const wxRichTextRange &range, wxTextAttr &style) |
| wxRichTextStyleSheet * | GetStyleSheet () const |
| virtual bool | GetUncombinedStyle (long position, wxTextAttr &style) |
| virtual wxString | GetValue () const |
| wxRichTextLine * | GetVisibleLineForCaretPosition (long caretPosition) const |
| virtual bool | HasCharacterAttributes (const wxRichTextRange &range, const wxTextAttr &style) const |
| virtual bool | HasParagraphAttributes (const wxRichTextRange &range, const wxTextAttr &style) const |
| virtual bool | HasSelection () const |
| void | Init () |
| bool | IsDefaultStyleShowing () const |
| virtual bool | IsEditable () const |
| bool | IsFrozen () const |
| virtual bool | IsModified () const |
| bool | IsMultiLine () const |
| bool | IsPositionVisible (long pos) const |
| virtual bool | IsSelectionAligned (wxTextAttrAlignment alignment) |
| virtual bool | IsSelectionBold () |
| virtual bool | IsSelectionItalics () |
| virtual bool | IsSelectionUnderlined () |
| bool | IsSingleLine () const |
| virtual bool | KeyboardNavigate (int keyCode, int flags) |
| virtual bool | LayoutContent (bool onlyVisibleRect=false) |
| virtual bool | LineBreak () |
| bool | LoadFile (const wxString &file, int type=wxRICHTEXT_TYPE_ANY) |
| virtual void | MarkDirty () |
| virtual bool | MoveCaret (long pos, bool showAtLineStart=false) |
| void | MoveCaretBack (long oldPosition) |
| void | MoveCaretForward (long oldPosition) |
| virtual bool | MoveDown (int noLines=1, int flags=0) |
| virtual bool | MoveEnd (int flags=0) |
| virtual bool | MoveHome (int flags=0) |
| virtual bool | MoveLeft (int noPositions=1, int flags=0) |
| virtual bool | MoveRight (int noPositions=1, int flags=0) |
| virtual bool | MoveToLineEnd (int flags=0) |
| virtual bool | MoveToLineStart (int flags=0) |
| virtual bool | MoveToParagraphEnd (int flags=0) |
| virtual bool | MoveToParagraphStart (int flags=0) |
| virtual bool | MoveUp (int noLines=1, int flags=0) |
| virtual bool | Newline () |
| void | OnClear (wxCommandEvent &event) |
| void | OnContextMenu (wxContextMenuEvent &event) |
| void | OnCopy (wxCommandEvent &event) |
| void | OnCut (wxCommandEvent &event) |
| void | OnDropFiles (wxDropFilesEvent &event) |
| void | OnPaste (wxCommandEvent &event) |
| void | OnRedo (wxCommandEvent &event) |
| void | OnSelectAll (wxCommandEvent &event) |
| void | OnUndo (wxCommandEvent &event) |
| void | OnUpdateClear (wxUpdateUIEvent &event) |
| void | OnUpdateCopy (wxUpdateUIEvent &event) |
| void | OnUpdateCut (wxUpdateUIEvent &event) |
| void | OnUpdatePaste (wxUpdateUIEvent &event) |
| void | OnUpdateRedo (wxUpdateUIEvent &event) |
| void | OnUpdateSelectAll (wxUpdateUIEvent &event) |
| void | OnUpdateUndo (wxUpdateUIEvent &event) |
| virtual bool | PageDown (int noPages=1, int flags=0) |
| virtual bool | PageUp (int noPages=1, int flags=0) |
| virtual void | PaintBackground (wxDC &dc) |
| virtual void | Paste () |
| virtual void | PositionCaret () |
| virtual bool | PositionToXY (long pos, long *x, long *y) const |
| virtual void | Redo () |
| virtual void | Remove (long from, long to) |
| virtual void | Replace (long from, long to, const wxString &value) |
| bool | SaveFile (const wxString &file=wxEmptyString, int type=wxRICHTEXT_TYPE_ANY) |
| virtual bool | ScrollIntoView (long position, int keyCode) |
| virtual void | SelectAll () |
| virtual void | SelectNone () |
| void | SetAndShowDefaultStyle (const wxTextAttr &attr) |
| virtual void | SetBasicStyle (const wxTextAttr &style) |
| void | SetCaretPosition (long position, bool showAtLineStart=false) |
| virtual bool | SetDefaultStyle (const wxTextAttr &style) |
| bool | SetDefaultStyleToCursorStyle () |
| void | SetDelayedLayoutThreshold (long threshold) |
| virtual void | SetEditable (bool editable) |
| void | SetFilename (const wxString &filename) |
| virtual bool | SetFont (const wxFont &font) |
| void | SetHandlerFlags (int flags) |
| virtual void | SetInsertionPoint (long pos) |
| virtual void | SetInsertionPointEnd () |
| virtual void | SetSelection (long from, long to) |
| void | SetSelectionRange (const wxRichTextRange &range) |
| void | SetStyleSheet (wxRichTextStyleSheet *styleSheet) |
| virtual void | SetValue (const wxString &value) |
| virtual void | SetupScrollbars (bool atTop=false) |
| virtual void | ShowPosition (long pos) |
| virtual bool | SuppressingUndo () const |
| void | Thaw () |
| virtual void | Undo () |
| virtual bool | WordLeft (int noWords=1, int flags=0) |
| virtual bool | WordRight (int noWords=1, int flags=0) |
| virtual bool | WriteImage (const wxString &filename, wxBitmapType bitmapType) |
| virtual bool | WriteImage (const wxRichTextImageBlock &imageBlock) |
| virtual void | WriteText (const wxString &text) |
| virtual long | XYToPosition (long x, long y) const |
| bool | ClearListStyle (const wxRichTextRange &range, int flags=wxRICHTEXT_SETSTYLE_WITH_UNDO) |
| bool | ClearListStyle (const wxRichTextRange &range, int flags=wxRICHTEXT_SETSTYLE_WITH_UNDO) |
| const wxRichTextBuffer | GetBuffer () |
| const wxRichTextBuffer & | GetBuffer () |
| wxTextCtrlHitTestResult | HitTest (const wxPoint &pt, long *pos) const |
| const wxTextCtrlHitTestResult | HitTest (const wxPoint &pt, wxTextCoord *col, wxTextCoord *row) const |
| bool | NumberList (const wxRichTextRange &range, const wxRichTextListStyleDefinition *style, int flags=wxRICHTEXT_SETSTYLE_WITH_UNDO, int startFrom=-1, int listLevel=-1) |
| bool | Number (const wxRichTextRange &range, const wxString &styleName, int flags=wxRICHTEXT_SETSTYLE_WITH_UNDO, int startFrom=-1, int listLevel=-1) |
| bool | PromoteList (int promoteBy, const wxRichTextRange &range, const wxRichTextListStyleDefinition *style, int flags=wxRICHTEXT_SETSTYLE_WITH_UNDO, int listLevel=-1) |
| bool | PromoteList (int promoteBy, const wxRichTextRange &range, const wxString &styleName, int flags=wxRICHTEXT_SETSTYLE_WITH_UNDO, int listLevel=-1) |
| bool | SetListStyle (const wxRichTextRange &range, const wxRichTextListStyleDefinition *style, int flags=wxRICHTEXT_SETSTYLE_WITH_UNDO, int startFrom=-1, int listLevel=-1) |
| bool | SetListStyle (const wxRichTextRange &range, const wxString &styleName, int flags=wxRICHTEXT_SETSTYLE_WITH_UNDO, int startFrom=-1, int listLevel=-1) |
| bool | SetStyle (const wxRichTextRange &range, const wxTextAttr &style) |
| bool | SetStyle (long start, long end, const wxTextAttr &style) |
| bool | SetStyleEx (const wxRichTextRange &range, const wxTextAttr &style, int flags=wxRICHTEXT_SETSTYLE_WITH_UNDO) |
| bool | SetStyleEx (long start, long end, const wxTextAttr &style, int flags=wxRICHTEXT_SETSTYLE_WITH_UNDO) |
| bool | WriteImage (const wxBitmap &bitmap, int bitmapType=wxBITMAP_TYPE_PNG) |
| bool | WriteImage (const wxImage &image, int bitmapType=wxBITMAP_TYPE_PNG) |
Protected Member Functions | |
| virtual wxSize | DoGetBestSize () const |
| void | InitCommandEvent (wxCommandEvent &event) const |
| wxRichTextCtrl::wxRichTextCtrl | ( | ) |
Default Constructor.
| wxRichTextCtrl::wxRichTextCtrl | ( | wxWindow * | parent, | |
| wxWindowID | id = wxID_ANY, |
|||
| const wxString & | value = wxEmptyString, |
|||
| const wxPoint & | pos = wxDefaultPosition, |
|||
| const wxSize & | size = wxDefaultSize, |
|||
| long | style = wxRE_MULTILINE, |
|||
| const wxValidator & | validator = wxDefaultValidator, |
|||
| const wxString & | name = wxTextCtrlNameStr | |||
| ) |
Constructor, creating and showing a rich text control.
| parent | Parent window. Must not be NULL. | |
| id | Window identifier. The value wxID_ANY indicates a default value. | |
| value | Default string. | |
| pos | Window position. | |
| size | Window size. | |
| style | Window style. | |
| validator | Window validator. | |
| name | Window name. |
| virtual wxRichTextCtrl::~wxRichTextCtrl | ( | ) | [virtual] |
Destructor.
| virtual wxRichTextRange wxRichTextCtrl::AddImage | ( | const wxImage & | image | ) | [virtual] |
Adds an image to the control's buffer.
| virtual wxRichTextRange wxRichTextCtrl::AddParagraph | ( | const wxString & | text | ) | [virtual] |
Adds a new paragraph of text to the end of the buffer.
| virtual void wxRichTextCtrl::AppendText | ( | const wxString & | text | ) | [virtual] |
Sets the insertion point to the end of the buffer and writes the text.
| virtual bool wxRichTextCtrl::ApplyAlignmentToSelection | ( | wxTextAttrAlignment | alignment | ) | [virtual] |
Applies the given alignment to the selection (undoable). For alignment values, see wxTextAttr.
| virtual bool wxRichTextCtrl::ApplyBoldToSelection | ( | ) | [virtual] |
Apples bold to the selection (undoable).
| virtual bool wxRichTextCtrl::ApplyItalicToSelection | ( | ) | [virtual] |
Applies italic to the selection (undoable).
| virtual bool wxRichTextCtrl::ApplyStyle | ( | wxRichTextStyleDefinition * | def | ) | [virtual] |
Applies the given style to the selection.
| bool wxRichTextCtrl::ApplyStyleSheet | ( | wxRichTextStyleSheet * | sheet = NULL |
) |
Applies the style sheet to the buffer, matching paragraph styles in the sheet against named styles in the buffer.
This might be useful if the styles have changed. If sheet is NULL, the sheet set with SetStyleSheet() is used. Currently this applies paragraph styles only.
| virtual bool wxRichTextCtrl::ApplyUnderlineToSelection | ( | ) | [virtual] |
Applies underline to the selection (undoable).
| virtual bool wxRichTextCtrl::BatchingUndo | ( | ) | const [virtual] |
Returns true if undo commands are being batched.
| bool wxRichTextCtrl::BeginAlignment | ( | wxTextAttrAlignment | alignment | ) |
Begins using alignment. For alignment values, see wxTextAttr.
| virtual bool wxRichTextCtrl::BeginBatchUndo | ( | const wxString & | cmdName | ) | [virtual] |
Starts batching undo history for commands.
| bool wxRichTextCtrl::BeginBold | ( | ) |
Begins using bold.
| bool wxRichTextCtrl::BeginCharacterStyle | ( | const wxString & | characterStyle | ) |
Begins using the named character style.
| bool wxRichTextCtrl::BeginFont | ( | const wxFont & | font | ) |
Begins using this font.
| bool wxRichTextCtrl::BeginFontSize | ( | int | pointSize | ) |
Begins using the given point size.
| bool wxRichTextCtrl::BeginItalic | ( | ) |
Begins using italic.
| bool wxRichTextCtrl::BeginLeftIndent | ( | int | leftIndent, | |
| int | leftSubIndent = 0 | |||
| ) |
Begins applying a left indent and subindent in tenths of a millimetre. The subindent is an offset from the left edge of the paragraph, and is used for all but the first line in a paragraph. A positive value will cause the first line to appear to the left of the subsequent lines, and a negative value will cause the first line to be indented to the right of the subsequent lines.
wxRichTextBuffer uses indentation to render a bulleted item. The content of the paragraph, including the first line, starts at the leftIndent plus the leftSubIndent.
| leftIndent | The distance between the margin and the bullet. | |
| leftSubIndent | The distance between the left edge of the bullet and the left edge of the actual paragraph. |
| bool wxRichTextCtrl::BeginLineSpacing | ( | int | lineSpacing | ) |
Begins appling line spacing. spacing is a multiple, where 10 means single-spacing, 15 means 1.5 spacing, and 20 means double spacing.
The wxTextAttrLineSpacing constants are defined for convenience.
| bool wxRichTextCtrl::BeginListStyle | ( | const wxString & | listStyle, | |
| int | level = 1, |
|||
| int | number = 1 | |||
| ) |
Begins using a specified list style. Optionally, you can also pass a level and a number.
| bool wxRichTextCtrl::BeginNumberedBullet | ( | int | bulletNumber, | |
| int | leftIndent, | |||
| int | leftSubIndent, | |||
| int | bulletStyle = wxTEXT_ATTR_BULLET_STYLE_ARABIC|wxTEXT_ATTR_BULLET_STYLE_PERIOD | |||
| ) |
Begins a numbered bullet.
This call will be needed for each item in the list, and the application should take care of incrementing the numbering.
bulletNumber is a number, usually starting with 1. leftIndent and leftSubIndent are values in tenths of a millimetre. bulletStyle is a bitlist of the wxTextAttrBulletStyle values.
wxRichTextBuffer uses indentation to render a bulleted item. The left indent is the distance between the margin and the bullet. The content of the paragraph, including the first line, starts at leftMargin + leftSubIndent. So the distance between the left edge of the bullet and the left of the actual paragraph is leftSubIndent.
| bool wxRichTextCtrl::BeginParagraphSpacing | ( | int | before, | |
| int | after | |||
| ) |
Begins paragraph spacing; pass the before-paragraph and after-paragraph spacing in tenths of a millimetre.
| bool wxRichTextCtrl::BeginParagraphStyle | ( | const wxString & | paragraphStyle | ) |
Begins applying the named paragraph style.
| bool wxRichTextCtrl::BeginRightIndent | ( | int | rightIndent | ) |
Begins a right indent, specified in tenths of a millimetre.
| virtual bool wxRichTextCtrl::BeginStyle | ( | const wxTextAttr & | style | ) | [virtual] |
Begins applying a style.
| virtual bool wxRichTextCtrl::BeginSuppressUndo | ( | ) | [virtual] |
Starts suppressing undo history for commands.
| bool wxRichTextCtrl::BeginSymbolBullet | ( | const wxString & | symbol, | |
| int | leftIndent, | |||
| int | leftSubIndent, | |||
| int | bulletStyle = wxTEXT_ATTR_BULLET_STYLE_SYMBOL | |||
| ) |
Begins applying a symbol bullet, using a character from the current font. See BeginNumberedBullet() for an explanation of how indentation is used to render the bulleted paragraph.
| bool wxRichTextCtrl::BeginTextColour | ( | const wxColour & | colour | ) |
Begins using this colour.
| bool wxRichTextCtrl::BeginURL | ( | const wxString & | url, | |
| const wxString & | characterStyle = wxEmptyString | |||
| ) |
Begins applying wxTEXT_ATTR_URL to the content.
Pass a URL and optionally, a character style to apply, since it is common to mark a URL with a familiar style such as blue text with underlining.
| bool wxRichTextCtrl::BeginUnderline | ( | ) |
Begins using underlining.
| virtual bool wxRichTextCtrl::CanCopy | ( | ) | const [virtual] |
Returns true if selected content can be copied to the clipboard.
| virtual bool wxRichTextCtrl::CanCut | ( | ) | const [virtual] |
Returns true if selected content can be copied to the clipboard and deleted.
| virtual bool wxRichTextCtrl::CanDeleteSelection | ( | ) | const [virtual] |
Returns true if selected content can be deleted.
| virtual bool wxRichTextCtrl::CanPaste | ( | ) | const [virtual] |
Returns true if the clipboard content can be pasted to the buffer.
| virtual bool wxRichTextCtrl::CanRedo | ( | ) | const [virtual] |
Returns true if there is a command in the command history that can be redone.
| virtual bool wxRichTextCtrl::CanUndo | ( | ) | const [virtual] |
Returns true if there is a command in the command history that can be undone.
| virtual void wxRichTextCtrl::Clear | ( | ) | [virtual] |
Clears the buffer content, leaving a single empty paragraph. Cannot be undone.
| bool wxRichTextCtrl::ClearListStyle | ( | const wxRichTextRange & | range, | |
| int | flags = wxRICHTEXT_SETSTYLE_WITH_UNDO | |||
| ) |
Clears the list style from the given range, clearing list-related attributes and applying any named paragraph style associated with each paragraph.
flags is a bit list of the following:
| bool wxRichTextCtrl::ClearListStyle | ( | const wxRichTextRange & | range, | |
| int | flags = wxRICHTEXT_SETSTYLE_WITH_UNDO | |||
| ) |
Clears the list style from the given range, clearing list-related attributes and applying any named paragraph style associated with each paragraph.
flags is a bit list of the following:
| virtual void wxRichTextCtrl::Command | ( | wxCommandEvent & | event | ) | [virtual] |
Sends the event to the control.
| virtual void wxRichTextCtrl::Copy | ( | ) | [virtual] |
Copies the selected content (if any) to the clipboard.
| bool wxRichTextCtrl::Create | ( | wxWindow * | parent, | |
| wxWindowID | id = wxID_ANY, |
|||
| const wxString & | value = wxEmptyString, |
|||
| const wxPoint & | pos = wxDefaultPosition, |
|||
| const wxSize & | size = wxDefaultSize, |
|||
| long | style = wxRE_MULTILINE, |
|||
| const wxValidator & | validator = wxDefaultValidator, |
|||
| const wxString & | name = wxTextCtrlNameStr | |||
| ) |
Creates the underlying window.
| virtual void wxRichTextCtrl::Cut | ( | ) | [virtual] |
Copies the selected content (if any) to the clipboard and deletes the selection. This is undoable.
| virtual bool wxRichTextCtrl::Delete | ( | const wxRichTextRange & | range | ) | [virtual] |
Deletes the content within the given range.
| bool wxRichTextCtrl::DeleteSelectedContent | ( | long * | newPos = NULL |
) |
Deletes content if there is a selection, e.g. when pressing a key. Returns the new caret position in newPos, or leaves it if there was no action. This is undoable.
| virtual void wxRichTextCtrl::DeleteSelection | ( | ) | [virtual] |
Deletes the content in the selection, if any. This is undoable.
| virtual void wxRichTextCtrl::DiscardEdits | ( | ) | [virtual] |
Sets the buffer's modified status to false, and clears the buffer's command history.
| bool wxRichTextCtrl::EndAlignment | ( | ) |
Ends alignment.
| virtual bool wxRichTextCtrl::EndAllStyles | ( | ) | [virtual] |
Ends application of all styles in the current style stack.
| virtual bool wxRichTextCtrl::EndBatchUndo | ( | ) | [virtual] |
Ends batching undo command history.
| bool wxRichTextCtrl::EndBold | ( | ) |
Ends using bold.
| bool wxRichTextCtrl::EndCharacterStyle | ( | ) |
Ends application of a named character style.
| bool wxRichTextCtrl::EndFont | ( | ) |
Ends using a font.
| bool wxRichTextCtrl::EndFontSize | ( | ) |
Ends using a point size.
| bool wxRichTextCtrl::EndItalic | ( | ) |
Ends using italic.
| bool wxRichTextCtrl::EndLeftIndent | ( | ) |
Ends left indent.
| bool wxRichTextCtrl::EndLineSpacing | ( | ) |
Ends line spacing.
| bool wxRichTextCtrl::EndListStyle | ( | ) |
Ends using a specified list style.
| bool wxRichTextCtrl::EndNumberedBullet | ( | ) |
Ends application of a numbered bullet.
| bool wxRichTextCtrl::EndParagraphSpacing | ( | ) |
Ends paragraph spacing.
| bool wxRichTextCtrl::EndParagraphStyle | ( | ) |
Ends application of a named character style.
| bool wxRichTextCtrl::EndRightIndent | ( | ) |
Ends right indent.
| virtual bool wxRichTextCtrl::EndStyle | ( | ) | [virtual] |
Ends the current style.
| virtual bool wxRichTextCtrl::EndSuppressUndo | ( | ) | [virtual] |
Ends suppressing undo command history.
| bool wxRichTextCtrl::EndSymbolBullet | ( | ) |
Ends applying a symbol bullet.
| bool wxRichTextCtrl::EndTextColour | ( | ) |
Ends applying a text colour.
| bool wxRichTextCtrl::EndURL | ( | ) |
Ends applying a URL.
| bool wxRichTextCtrl::EndUnderline | ( | ) |
End applying underlining.
| virtual bool wxRichTextCtrl::ExtendSelection | ( | long | oldPosition, | |
| long | newPosition, | |||
| int | flags | |||
| ) | [virtual] |
Helper function for extending the selection, returning true if the selection was changed. Selections are in caret positions.
| virtual long wxRichTextCtrl::FindNextWordPosition | ( | int | direction = 1 |
) | const [virtual] |
Helper function for finding the caret position for the next word. Direction is 1 (forward) or -1 (backwards).