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:
parent
b7bfef3806
commit
a5125dc6ed
@ -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)
|
||||
|
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user