SetBezelStyleFromBorderFlags(v, style);
[v setButtonType:NSOnOffButton];
- wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v );
+ wxWidgetCocoaImpl* c = new wxButtonCocoaImpl( wxpeer, v );
return c;
}
NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ;
wxNSButton* v = [[wxNSButton alloc] initWithFrame:r];
+ SetBezelStyleFromBorderFlags(v, style);
+
if (label.IsOk())
[v setImage:label.GetNSImage() ];
- SetBezelStyleFromBorderFlags(v, style);
-
[v setButtonType:NSOnOffButton];
- wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v );
+ wxWidgetCocoaImpl* c = new wxButtonCocoaImpl( wxpeer, v );
return c;
}