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