-#include "wx/wxprec.h"
-
-#if wxUSE_BMPBUTTON
-
-#include "wx/bmpbuttn.h"
-#include "wx/image.h"
-
-#ifndef WX_PRECOMP
- #include "wx/dcmemory.h"
-#endif
-
-#include "wx/osx/private.h"
-
-wxWidgetImplType* wxWidgetImpl::CreateBitmapButton( wxWindowMac* wxpeer,
- wxWindowMac* parent,
- wxWindowID id,
- const wxBitmap& bitmap,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- long extraStyle)
-{
- NSView* sv = (wxpeer->GetParent()->GetHandle() );
-
- NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ;
- wxNSButton* v = [[wxNSButton alloc] initWithFrame:r];
-
- [v setBezelStyle:NSRegularSquareBezelStyle];
-
- [v setButtonType:NSMomentaryPushInButton];
- [sv addSubview:v];
- wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v );
- [v setImplementation:c];
- return c;
-}
-
-#endif