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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user