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:
Guillermo Rodriguez Garcia
2000-06-12 17:14:03 +00:00
parent 8e8d1fee57
commit b3dc3e89a6
3 changed files with 17 additions and 1 deletions

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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();
}