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
This commit is contained in:
David Elliott
2004-04-15 19:17:15 +00:00
parent ed3ff7fe09
commit 7b73db07a3

View 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)