/**
Destructor, destroying the text control.
*/
- ~wxTextCtrl();
+ virtual ~wxTextCtrl();
/**
Appends the text to the end of the text control.
Resets the internal modified flag as if the current changes had been
saved.
*/
- void DiscardEdits();
+ virtual void DiscardEdits();
/**
This functions inserts into the control the character which would have
@true if the event resulted in a change to the control, @false
otherwise.
*/
- bool EmulateKeyPress(const wxKeyEvent& event);
+ virtual bool EmulateKeyPress(const wxKeyEvent& event);
/**
Returns the style currently used for the new text.
@return
The length of the line, or -1 if @a lineNo was invalid.
*/
- int GetLineLength(long lineNo) const;
+ virtual int GetLineLength(long lineNo) const;
/**
Returns the contents of a given line in the text control, not including
@return
The contents of the line.
*/
- wxString GetLineText(long lineNo) const;
+ virtual wxString GetLineText(long lineNo) const;
/**
Returns the number of lines in the text control buffer.
insertion point is), so GetNumberOfLines() never
returns 0.
*/
- int GetNumberOfLines() const;
+ virtual int GetNumberOfLines() const;
/**
Returns the string containing the text starting in the positions
@see SetStyle(), wxTextAttr
*/
- bool GetStyle(long position, wxTextAttr& style);
+ virtual bool GetStyle(long position, wxTextAttr& style);
/**
Gets the contents of the control.
by (Unix-style) @c \\n characters, even under Windows where they are
separated by a @c \\r\\n sequence in the native control.
*/
- wxString GetValue() const;
+ virtual wxString GetValue() const;
/**
This function finds the character at the specified position expressed
In other words, this functions returns @true if the control hasn't been
put in read-only mode by a previous call to SetEditable().
*/
- bool IsEditable() const;
+ virtual bool IsEditable() const;
/**
Returns @true if the control is currently empty.
@since 2.7.1
*/
- bool IsEmpty() const;
+ virtual bool IsEmpty() const;
/**
Returns @true if the text has been modified by user.
@see MarkDirty()
*/
- bool IsModified() const;
+ virtual bool IsModified() const;
/**
Returns @true if this is a multi line edit control and @false
@see IsModified()
*/
- void MarkDirty();
+ virtual void MarkDirty();
/**
This event handler function implements default drag and drop behaviour,
@see XYToPosition()
*/
- bool PositionToXY(long pos, long* x, long* y) const;
+ virtual bool PositionToXY(long pos, long* x, long* y) const;
/**
If there is a redo facility and the last operation can be redone,
@see GetDefaultStyle()
*/
- bool SetDefaultStyle(const wxTextAttr& style);
+ virtual bool SetDefaultStyle(const wxTextAttr& style);
/**
Makes the text item editable or read-only, overriding the
@see GetStyle(), wxTextAttr
*/
- bool SetStyle(long start, long end, const wxTextAttr& style);
+ virtual bool SetStyle(long start, long end, const wxTextAttr& style);
/**
Sets the text value and marks the control as not-modified (which means
@param pos
The position that should be visible.
*/
- void ShowPosition(long pos);
+ virtual void ShowPosition(long pos);
/**
If there is an undo facility and the last operation can be undone,
allowed, and they will cause appropriate line breaks. See () and
AppendText() for more convenient ways of writing to the window.
*/
- void WriteText(const wxString& text);
+ virtual void WriteText(const wxString& text);
/**
Converts the given zero based column and line number to a position.
@return
The position value, or -1 if x or y was invalid.
*/
- long XYToPosition(long x, long y);
+ virtual long XYToPosition(long x, long y) const;
//@{
/**