X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3c7fc996a73e9f6a83067bc28a3c5581a3fee65..333e57d578e9e0fb6555452b5a53698ffd85ee69:/include/wx/msw/wince/textctrlce.h?ds=sidebyside diff --git a/include/wx/msw/wince/textctrlce.h b/include/wx/msw/wince/textctrlce.h index 0ed278f7cd..d04b118fd1 100644 --- a/include/wx/msw/wince/textctrlce.h +++ b/include/wx/msw/wince/textctrlce.h @@ -14,7 +14,7 @@ #include "wx/dynarray.h" -class WXDLLEXPORT wxTextCtrl; +class WXDLLIMPEXP_FWD_CORE wxTextCtrl; WX_DEFINE_EXPORTED_ARRAY_PTR(wxTextCtrl *, wxArrayTextSpins); class WXDLLEXPORT wxTextCtrl : public wxTextCtrlBase @@ -50,7 +50,9 @@ public: // ---------------------------------- virtual wxString GetValue() const; - virtual void SetValue(const wxString& value); + virtual void SetValue(const wxString& value) { DoSetValue(value, SetValue_SendEvent); } + + virtual void ChangeValue(const wxString &value) { DoSetValue(value); } virtual wxString GetRange(long from, long to) const; @@ -185,9 +187,11 @@ protected: // false if we hit the limit set by SetMaxLength() and so didn't change it bool AdjustSpaceLimit(); + void DoSetValue(const wxString &value, int flags = 0); + // replace the contents of the selection or of the entire control with the // given text - void DoWriteText(const wxString& text, bool selectionOnly = true); + void DoWriteText(const wxString& text, int flags = SetValue_SelectionOnly); // set the selection possibly without scrolling the caret into view void DoSetSelection(long from, long to, bool scrollCaret = true);