X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/519cb848a8f4c91c73421bb75314754284e593a4..d6c9c1b71e069396bbe3850862de9aa10e6812e0:/src/mac/combobox.cpp diff --git a/src/mac/combobox.cpp b/src/mac/combobox.cpp index 905f3180aa..1689c15490 100644 --- a/src/mac/combobox.cpp +++ b/src/mac/combobox.cpp @@ -46,7 +46,9 @@ bool wxComboBox::Create(wxWindow *parent, wxWindowID id, SetControlData( m_macControl , kControlNoPart , kControlPopupButtonMenuHandleTag , sizeof( MenuHandle ) , (char*) &m_macPopUpMenuHandle) ; for ( int i = 0 ; i < n ; i++ ) { - appendmenu( m_macPopUpMenuHandle , choices[i] ) ; + Str255 label; + wxMenuItem::MacBuildMenuString( label , NULL , NULL , choices[i] ,false); + AppendMenu( m_macPopUpMenuHandle , label ) ; } SetControlMinimum( m_macControl , 0 ) ; SetControlMaximum( m_macControl , m_noStrings) ; @@ -127,7 +129,9 @@ void wxComboBox::SetSelection(long from, long to) void wxComboBox::Append(const wxString& item) { - appendmenu( m_macPopUpMenuHandle , item ) ; + Str255 label; + wxMenuItem::MacBuildMenuString( label , NULL , NULL , item ,false); + AppendMenu( m_macPopUpMenuHandle , label ) ; m_noStrings ++; SetControlMaximum( m_macControl , m_noStrings) ; }