From: David Elliott Date: Thu, 15 Apr 2004 19:17:15 +0000 (+0000) Subject: Make buttons display the bitmap image instead of the text "Bitmap Button" X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7b73db07a373f775b5a30d5a33d3a66ebd373c14 Make buttons display the bitmap image instead of the text "Bitmap Button" git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/cocoa/bmpbuttn.mm b/src/cocoa/bmpbuttn.mm index 50da8d7cdc..439936ea54 100644 --- a/src/cocoa/bmpbuttn.mm +++ b/src/cocoa/bmpbuttn.mm @@ -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)