X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/04a6d8efe892a1ee77fa42a85299a359ce02527b..0afeb753e0a6a3fdba290bf3612bb2f012d44d95:/src/osx/cocoa/tglbtn.mm diff --git a/src/osx/cocoa/tglbtn.mm b/src/osx/cocoa/tglbtn.mm index 837a3969ef..ab7aab16f7 100644 --- a/src/osx/cocoa/tglbtn.mm +++ b/src/osx/cocoa/tglbtn.mm @@ -30,7 +30,8 @@ extern "C" void SetBezelStyleFromBorderFlags(NSButton *v, long style, wxWindowID winid = wxID_ANY, - const wxString& label = wxString()); + const wxString& label = wxString(), + const wxBitmap& bitmap = wxBitmap()); wxWidgetImplType* wxWidgetImpl::CreateToggleButton( wxWindowMac* wxpeer, wxWindowMac* WXUNUSED(parent), @@ -63,7 +64,7 @@ wxWidgetImplType* wxWidgetImpl::CreateBitmapToggleButton( wxWindowMac* wxpeer, NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ; wxNSButton* v = [[wxNSButton alloc] initWithFrame:r]; - SetBezelStyleFromBorderFlags(v, style, winid); + SetBezelStyleFromBorderFlags(v, style, winid, wxString(), label); if (label.IsOk()) [v setImage:label.GetNSImage() ];