]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/choiccmn.cpp
adding support for wxCB_SORT
[wxWidgets.git] / src / common / choiccmn.cpp
index da71cd6208623862555b4406bf9aa646bc24a266..50c633894e9a6f670aa8ff959d791ad77e1fac7e 100644 (file)
@@ -43,28 +43,13 @@ wxChoiceBase::~wxChoiceBase()
     // this destructor is required for Darwin
 }
 
-// ----------------------------------------------------------------------------
-// selection
-// ----------------------------------------------------------------------------
-
-bool wxChoiceBase::SetStringSelection(const wxString& s)
-{
-    int sel = FindString(s);
-    wxCHECK_MSG( sel != -1, FALSE,
-                 wxT("invalid string in wxChoice::SetStringSelection") );
-
-    Select(sel);
-
-    return TRUE;
-}
-
 // ----------------------------------------------------------------------------
 // misc
 // ----------------------------------------------------------------------------
 
 void wxChoiceBase::Command(wxCommandEvent& event)
 {
-    SetSelection(event.m_commandInt);
+    SetSelection(event.GetInt());
     (void)ProcessEvent(event);
 }