+ options = 0;
+ if ( style & wxLB_MULTIPLE )
+ {
+ options += lNoExtend ;
+ }
+ else if ( style & wxLB_EXTENDED )
+ {
+ options += lExtendDrag ;
+ }
+ else
+ {
+ options = lOnlyOne ;
+ }
+ SetListSelectionFlags(m_macList, options);
+
+#else
+ long result ;
+
+ m_macControl = UMANewControl( parent->GetMacRootWindow() , &bounds , title , false ,
+ kwxMacListWithVerticalScrollbar , 0 , 0,
+ kControlListBoxProc , (long) this ) ;
+ UMAGetControlData( m_macControl , kControlNoPart , kControlListBoxListHandleTag ,
+ sizeof( ListHandle ) , (char*) &m_macList , &result ) ;
+
+ HLock( (Handle) m_macList ) ;
+ NewExtLDEFInfo( m_macList , MacDrawStringCell , (long) this ) ;
+
+ (**m_macList).selFlags = 0 ;
+ if ( style & wxLB_MULTIPLE )
+ {
+ (**m_macList).selFlags += lNoExtend ;
+ }
+ else if ( style & wxLB_EXTENDED )
+ {
+ (**m_macList).selFlags += lExtendDrag ;
+ }
+ else
+ {
+ (**m_macList).selFlags = lOnlyOne ;
+ }
+
+ Point pt = (**m_macList).cellSize ;
+ pt.v = 14 ;
+ LCellSize( pt , m_macList ) ;
+
+ LAddColumn( 1 , 0 , m_macList ) ;
+
+ ControlFontStyleRec controlstyle ;
+ controlstyle.flags = kControlUseFontMask + kControlUseSizeMask ;
+ //controlstyle.font = kControlFontSmallSystemFont ;
+ controlstyle.font = kFontIDMonaco ;
+ controlstyle.size = 9 ;
+ //::UMASetControlFontStyle( m_macControl , &controlstyle ) ;
+#endif
+
+ MacPostControlCreate() ;
+
+ for ( int i = 0 ; i < n ; i++ )
+ {
+ Append( choices[i] ) ;
+ }
+
+ LSetDrawingMode( true , m_macList ) ;