don't make control dirty after a call to SetValue()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2001-12-25 22:32:55 +00:00
parent 8b4a9377b0
commit 104d7404b9

View File

@ -438,6 +438,10 @@ void wxTextCtrl::SetValue(const wxString& value)
WriteText(value);
// mark the control as being not dirty - we changed its text, not the
// user
DiscardEdits();
// for compatibility, don't move the cursor when doing SetValue()
SetInsertionPoint(0);
}