]> git.saurik.com Git - wxWidgets.git/commitdiff
Make buttons display the bitmap image instead of the text "Bitmap Button"
authorDavid Elliott <dfe@tgwbd.org>
Thu, 15 Apr 2004 19:17:15 +0000 (19:17 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Thu, 15 Apr 2004 19:17:15 +0000 (19:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/bmpbuttn.mm

index 50da8d7cdcac74332055904b1c94ea95a37173a5..439936ea54510df86942f7521d9682d299754baa 100644 (file)
@@ -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)