X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0306e73e630bce45a3f56a0616559250fcb8c05e..703e3c42d11a74be69cc1dee560e2c0f359ac13f:/src/generic/odcombo.cpp?ds=inline diff --git a/src/generic/odcombo.cpp b/src/generic/odcombo.cpp index 557a533268..b9818d560c 100644 --- a/src/generic/odcombo.cpp +++ b/src/generic/odcombo.cpp @@ -371,7 +371,7 @@ bool wxVListBoxComboPopup::HandleKey( int keycode, bool saturate, wxChar keychar return true; if ( value >= 0 ) - m_combo->SetValue(m_strings[value]); + m_combo->ChangeValue(m_strings[value]); // The m_combo->SetValue() call above sets m_value to the index of this // string. But if there are more identical string, the index is of the @@ -545,7 +545,7 @@ int wxVListBoxComboPopup::Append(const wxString& item) for ( i=0; iClear(); + // NB: This really needs to be SetValue() instead of ChangeValue(), + // as wxTextEntry API expects an event to be sent. SetValue(wxEmptyString); } @@ -1006,7 +1003,7 @@ void wxOwnerDrawnComboBox::DoDeleteOneItem(unsigned int n) wxCHECK_RET( IsValid(n), wxT("invalid index in wxOwnerDrawnComboBox::Delete") ); if ( GetSelection() == (int) n ) - SetValue(wxEmptyString); + ChangeValue(wxEmptyString); GetVListBoxComboPopup()->Delete(n); } @@ -1060,7 +1057,7 @@ void wxOwnerDrawnComboBox::Select(int n) // Refresh text portion in control if ( m_text ) - m_text->SetValue( str ); + m_text->ChangeValue( str ); else m_valueString = str;