X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/584bede0618774ad7f62476c9adddeb9776fb737..16d38102e8ad5534d185cc532b9aa8077a75e0a4:/src/mac/choice.cpp?ds=inline diff --git a/src/mac/choice.cpp b/src/mac/choice.cpp index 67aee1e928..30a17488d2 100644 --- a/src/mac/choice.cpp +++ b/src/mac/choice.cpp @@ -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) {