X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/04a6d8efe892a1ee77fa42a85299a359ce02527b..1c2704fe7b25f8f0b1f92b33280adc3c63d2dcab:/src/osx/cocoa/tglbtn.mm diff --git a/src/osx/cocoa/tglbtn.mm b/src/osx/cocoa/tglbtn.mm index 837a3969ef..3dd6dedd87 100644 --- a/src/osx/cocoa/tglbtn.mm +++ b/src/osx/cocoa/tglbtn.mm @@ -5,7 +5,6 @@ // Author: Stefan Csomor // Modified by: // Created: 08.02.01 -// RCS-ID: $Id$ // Copyright: (c) Stefan Csomor // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -30,7 +29,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 +63,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() ];