X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6519b40fe9f5e4706e02497fe01ff71c65079d6..166c3ef0f9a77a66143968be2c1b58747994d32e:/include/wx/msw/textctrl.h diff --git a/include/wx/msw/textctrl.h b/include/wx/msw/textctrl.h index dee8fd0bbe..ec1a9e0b4f 100644 --- a/include/wx/msw/textctrl.h +++ b/include/wx/msw/textctrl.h @@ -45,8 +45,7 @@ public: // ---------------------------------- virtual wxString GetValue() const; - virtual void SetValue(const wxString& value) { DoSetValue(value, SetValue_SendEvent); } - virtual void ChangeValue(const wxString &value) { DoSetValue(value); } + virtual bool IsEmpty() const; virtual wxString GetRange(long from, long to) const; @@ -208,7 +207,7 @@ protected: // common part of all ctors void Init(); - void DoSetValue(const wxString &value, int flags = 0); + virtual void DoSetValue(const wxString &value, int flags = 0); // return true if this control has a user-set limit on amount of text (i.e. // the limit is due to a previous call to SetMaxLength() and not built in) @@ -232,7 +231,8 @@ protected: // replace the contents of the selection or of the entire control with the // given text - void DoWriteText(const wxString& text, int flags = SetValue_SelectionOnly); + void DoWriteText(const wxString& text, + int flags = SetValue_SendEvent | SetValue_SelectionOnly); // set the selection possibly without scrolling the caret into view void DoSetSelection(long from, long to, bool scrollCaret = true);