+
+ wxListBox *list = static_cast<wxListBox*> ( GetWXPeer());
+ if ( list != NULL )
+ {
+ NSControlSize size = NSRegularControlSize;
+
+ switch ( list->GetWindowVariant() )
+ {
+ case wxWINDOW_VARIANT_NORMAL :
+ size = NSRegularControlSize;
+ break ;
+
+ case wxWINDOW_VARIANT_SMALL :
+ size = NSSmallControlSize;
+ break ;
+
+ case wxWINDOW_VARIANT_MINI :
+ size = NSMiniControlSize;
+ break ;
+
+ case wxWINDOW_VARIANT_LARGE :
+ size = NSRegularControlSize;
+ break ;
+
+ default:
+ break ;
+ }
+
+ [[col1 dataCell] setControlSize:size];
+ // although there is no text, it may help to get the correct vertical layout
+ [[col1 dataCell] setFont:list->GetFont().OSXGetNSFont()];
+ }
+