added wxTextCtrl::ChangeValue() which is the same as SetValue() but doesn't send the text changed event (first part of patch 1553551)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-10-08 17:46:12 +00:00
parent 1d6fcbcc70
commit f6519b40fe
24 changed files with 191 additions and 45 deletions

View File

@@ -778,7 +778,7 @@ wxTextCtrl::~wxTextCtrl()
// set/get the value
// ----------------------------------------------------------------------------
void wxTextCtrl::SetValue(const wxString& value)
void wxTextCtrl::ChangeValue(const wxString& value)
{
if ( IsSingleLine() && (value == GetValue()) )
{
@@ -792,8 +792,12 @@ void wxTextCtrl::SetValue(const wxString& value)
{
SetInsertionPoint(0);
}
}
// TODO: should we generate the event or not, finally?
void wxTextCtrl::SetValue(const wxString& value)
{
ChangeValue(value);
SendTextUpdatedEvent();
}
const wxArrayString& wxTextCtrl::GetLines() const