+ Rect bounds ;
+ Str255 title ;
+
+ MacPreControlCreate( parent , id , "" , pos , size ,style, validator , name , &bounds , title ) ;
+
+ m_macControl = ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , 0 , -12345 , 0,
+ kControlPopupButtonProc , (long) this ) ;
+
+ m_macPopUpMenuHandle = NewUniqueMenu() ;
+ SetControlData( (ControlHandle) m_macControl , kControlNoPart , kControlPopupButtonMenuHandleTag , sizeof( MenuHandle ) , (char*) &m_macPopUpMenuHandle) ;
+ for ( int i = 0 ; i < n ; i++ )
+ {
+ Str255 label;
+ wxMenuItem::MacBuildMenuString( label , NULL , NULL , choices[i] ,false);
+ AppendMenu( (MenuHandle) m_macPopUpMenuHandle , label ) ;
+ }
+ SetControlMinimum( (ControlHandle) m_macControl , 0 ) ;
+ SetControlMaximum( (ControlHandle) m_macControl , m_noStrings) ;
+ SetControlValue( (ControlHandle) m_macControl , 1 ) ;
+
+ MacPostControlCreate() ;
+
+ return TRUE;