From af01f1ba0d697c07173f436ab661b4c833258a91 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 9 Dec 2001 01:39:54 +0000 Subject: [PATCH] fixed bug with the caret positioning after SetValue() introduced by the last commit git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/textctrl.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); } } -- 2.45.2