Added Test for wxComboBox::SetValue() to widgets sample.

Make wxGTK not send text change events then.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2007-04-26 18:40:43 +00:00
parent 3dd2cf729d
commit 21dd7c5b4c
2 changed files with 22 additions and 0 deletions

View File

@@ -946,7 +946,10 @@ void wxComboBox::SetValue( const wxString& value )
wxString tmp;
if (!value.IsNull()) tmp = value;
DisableEvents();
gtk_entry_set_text( entry, wxGTK_CONV( tmp ) );
EnableEvents();
InvalidateBestSize();
}