X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b42a87073839b2b31c105f08080626ba32b40e3..8c2654ce3d3db6e87cc0a33f3f38eb2f5bf95134:/src/common/textentrycmn.cpp diff --git a/src/common/textentrycmn.cpp b/src/common/textentrycmn.cpp index 4adca176b0..b179499381 100644 --- a/src/common/textentrycmn.cpp +++ b/src/common/textentrycmn.cpp @@ -62,6 +62,8 @@ void wxTextEntryBase::DoSetValue(const wxString& value, int flags) SelectAll(); WriteText(value); + + SetInsertionPoint(0); } void wxTextEntryBase::Replace(long from, long to, const wxString& value) @@ -71,6 +73,7 @@ void wxTextEntryBase::Replace(long from, long to, const wxString& value) Remove(from, to); } + SetInsertionPoint(from); WriteText(value); }