When calling SetValue(), the insertion point is set to the beginning,
rather that to the end of the text. wx2.2 will have flags to customize this behaviour. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -337,6 +337,12 @@ void wxTextCtrl::SetValue( const wxString &value )
|
||||
{
|
||||
gtk_entry_set_text( GTK_ENTRY(m_text), tmp.mbc_str() );
|
||||
}
|
||||
|
||||
// GRG, Jun/2000: Changed this after a lot of discussion in
|
||||
// the lists. wxWindows 2.2 will have a set of flags to
|
||||
// customize this behaviour.
|
||||
SetInsertionPoint(0);
|
||||
|
||||
m_modified = FALSE;
|
||||
}
|
||||
|
||||
|
@@ -337,6 +337,12 @@ void wxTextCtrl::SetValue( const wxString &value )
|
||||
{
|
||||
gtk_entry_set_text( GTK_ENTRY(m_text), tmp.mbc_str() );
|
||||
}
|
||||
|
||||
// GRG, Jun/2000: Changed this after a lot of discussion in
|
||||
// the lists. wxWindows 2.2 will have a set of flags to
|
||||
// customize this behaviour.
|
||||
SetInsertionPoint(0);
|
||||
|
||||
m_modified = FALSE;
|
||||
}
|
||||
|
||||
|
@@ -427,7 +427,11 @@ void wxTextCtrl::SetValue(const wxString& value)
|
||||
|
||||
// for compatibility with the GTK and because it is more logical, we
|
||||
// move the cursor to the end of the text after SetValue()
|
||||
SetInsertionPointEnd();
|
||||
|
||||
// GRG, Jun/2000: Changed this back after a lot of discussion
|
||||
// in the lists. wxWindows 2.2 will have a set of flags to
|
||||
// customize this behaviour.
|
||||
//SetInsertionPointEnd();
|
||||
|
||||
AdjustSpaceLimit();
|
||||
}
|
||||
|
Reference in New Issue
Block a user