diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index 4c1d1d901f..d7975dde5e 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -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; } diff --git a/src/gtk1/textctrl.cpp b/src/gtk1/textctrl.cpp index 4c1d1d901f..d7975dde5e 100644 --- a/src/gtk1/textctrl.cpp +++ b/src/gtk1/textctrl.cpp @@ -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; } diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index d2a0214af7..cc70be0e72 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -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(); }