#include "wx/wxprec.h"
+#if wxUSE_COMBOBOX
+
#include "wx/combobox.h"
#include "wx/button.h"
#include "wx/menu.h"
}
SetBestSize(size); // Needed because it is a wxControlWithItems
-
+ SetStringSelection(value);
+
return true;
}
return wxEmptyString;
}
-bool wxComboBox::SetStringSelection(const wxString& sel)
-{
- int s = FindString (sel);
- if (s > -1)
- {
- SetSelection (s);
- return true;
- }
- else
- return false;
-}
-
void wxComboBox::SetString(int n, const wxString& s)
{
m_choice->SetString( n , s ) ;
return noErr ;
}
+#endif