git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72862
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
SetBezelStyleFromBorderFlags(v, style);
[v setButtonType:NSOnOffButton];
SetBezelStyleFromBorderFlags(v, style);
[v setButtonType:NSOnOffButton];
- wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v );
+ wxWidgetCocoaImpl* c = new wxButtonCocoaImpl( wxpeer, v );
NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ;
wxNSButton* v = [[wxNSButton alloc] initWithFrame:r];
NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ;
wxNSButton* v = [[wxNSButton alloc] initWithFrame:r];
+ SetBezelStyleFromBorderFlags(v, style);
+
if (label.IsOk())
[v setImage:label.GetNSImage() ];
if (label.IsOk())
[v setImage:label.GetNSImage() ];
- SetBezelStyleFromBorderFlags(v, style);
-
[v setButtonType:NSOnOffButton];
[v setButtonType:NSOnOffButton];
- wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v );
+ wxWidgetCocoaImpl* c = new wxButtonCocoaImpl( wxpeer, v );