]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/choice.cpp
made GetColourFromGTKWidget() more general, it is now used for all colours
[wxWidgets.git] / src / mac / carbon / choice.cpp
index 67aee1e9283c6ce7150168c3bc4c39dc471a520c..30a17488d2f79f62948ac6c3909980dd38e5673c 100644 (file)
@@ -92,7 +92,7 @@ void wxChoice::Delete(int n)
 
     ::DeleteMenuItem( m_macPopUpMenuHandle , n + 1) ;
     m_strings.Remove( n ) ;
-    m_datas.Remove( n ) ;
+    m_datas.RemoveAt( n ) ;
        SetControlMaximum( m_macControl , GetCount()) ;
 }
 
@@ -216,6 +216,13 @@ void wxChoice::MacHandleControlClick( ControlHandle control , SInt16 controlpart
     event.SetString(GetStringSelection());
     ProcessCommand(event);
 }
+
+wxSize wxChoice::DoGetBestSize() const
+{
+    // TODO should modify this to take into account string length ala wxGTK
+    return wxSize(100,20);
+}
+
 /*
 void wxChoice::Command(wxCommandEvent & event)
 {