]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/combobox.cpp
at the moment built in 'old' textcontrol has better overall appearance, added fix...
[wxWidgets.git] / src / gtk1 / combobox.cpp
index 43ed08ba4abbc08b5575ca19b6cec007496ad632..7660f4a9fa47db790490bf376103e86a2d88d512 100644 (file)
@@ -557,13 +557,14 @@ void wxComboBox::SetSelection( int n )
     EnableEvents();
 }
 
-void wxComboBox::SetStringSelection( const wxString &string )
+bool wxComboBox::SetStringSelection( const wxString &string )
 {
-    wxCHECK_RET( m_widget != NULL, wxT("invalid combobox") );
+    wxCHECK_MSG( m_widget != NULL, false, wxT("invalid combobox") );
 
     int res = FindString( string );
-    if (res == -1) return;
+    if (res == -1) return false;
     SetSelection( res );
+    return true;
 }
 
 wxString wxComboBox::GetValue() const