projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
compatibility changes: WXWIN_COMPATIBILITY_EVENT_TYPES and DECLARE_EVENT_TABLE_ENTRY...
[wxWidgets.git]
/
src
/
mac
/
combobox.cpp
diff --git
a/src/mac/combobox.cpp
b/src/mac/combobox.cpp
index 905f3180aa4bc0af8bed2c60774a2725ee19d3e3..1689c1549076bf34bb11a4c973778aab0c593fb9 100644
(file)
--- 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++ )
{
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) ;
}
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)
{
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) ;
}
m_noStrings ++;
SetControlMaximum( m_macControl , m_noStrings) ;
}