diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index b8b44e6c6d..4282e711fe 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -433,6 +433,9 @@ void wxTextCtrl::SetValue(const wxString& value) Clear(); WriteText(value); + + // for compatibility, don't move the cursor when doing SetValue() + SetInsertionPoint(0); } }