X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/48580976469f7c46b730f96effacfa680e55e3cd..d109c5849ed117966311a44875c97ae3d77b44e5:/src/cocoa/bmpbuttn.mm diff --git a/src/cocoa/bmpbuttn.mm b/src/cocoa/bmpbuttn.mm index 50da8d7cdc..63252c28f4 100644 --- a/src/cocoa/bmpbuttn.mm +++ b/src/cocoa/bmpbuttn.mm @@ -6,7 +6,7 @@ // Created: 2003/03/16 // RCS-ID: $Id: // Copyright: (c) 2003 David Elliott -// Licence: wxWindows license +// Licence: wxWidgets licence ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" @@ -42,8 +42,8 @@ bool wxBitmapButton::Create(wxWindow *parent, wxWindowID winid, // DoAddChild(this) will retain us again since addSubView doesn't. [m_cocoaNSView release]; - [GetNSButton() setBezelStyle:NSRoundedBezelStyle]; - [GetNSButton() setTitle:@"Bitmap Button"]; + [GetNSButton() setBezelStyle: NSRegularSquareBezelStyle]; + [GetNSButton() setImage:bitmap.GetNSImage(true)]; [GetNSControl() sizeToFit]; if(m_parent)