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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user