X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9467bdb7f5bfde9f99331097daacb93564ca122e..2da25e49e59a072d337ff05583c17a49d26a7990:/src/univ/textctrl.cpp diff --git a/src/univ/textctrl.cpp b/src/univ/textctrl.cpp index 5dc742581b..17ed256745 100644 --- a/src/univ/textctrl.cpp +++ b/src/univ/textctrl.cpp @@ -778,7 +778,7 @@ wxTextCtrl::~wxTextCtrl() // set/get the value // ---------------------------------------------------------------------------- -void wxTextCtrl::SetValue(const wxString& value) +void wxTextCtrl::ChangeValue(const wxString& value) { if ( IsSingleLine() && (value == GetValue()) ) { @@ -792,8 +792,12 @@ void wxTextCtrl::SetValue(const wxString& value) { SetInsertionPoint(0); } +} - // TODO: should we generate the event or not, finally? +void wxTextCtrl::SetValue(const wxString& value) +{ + ChangeValue(value); + SendTextUpdatedEvent(); } const wxArrayString& wxTextCtrl::GetLines() const