set selection point to end in wxTextEntryBase::SetValue() as this should be done in all ports and in all controls (fixes a unit test failure for wxComboBox)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-09-19 10:13:38 +00:00
parent b7bfef3806
commit a5125dc6ed
2 changed files with 2 additions and 3 deletions

View File

@ -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)

View File

@ -1007,9 +1007,6 @@ void wxTextCtrl::DoSetValue( const wxString &value, int flags )
{
EnableTextChangedEvents(true);
}
// This was added after discussion on the list
SetInsertionPoint(0);
}
void wxTextCtrl::WriteText( const wxString &text )