]>
git.saurik.com Git - wxWidgets.git/blob - src/gtk/bmpbuttn.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/gtk/bmpbuttn.cpp
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 // For compilers that support precompilation, includes "wx.h".
11 #include "wx/wxprec.h"
15 #include "wx/bmpbuttn.h"
17 IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton
,wxButton
)
19 bool wxBitmapButton::Create(wxWindow
*parent
,
21 const wxBitmap
& bitmap
,
25 const wxValidator
& validator
,
28 if ( !wxBitmapButtonBase::Create(parent
, id
, pos
, size
, style
,
34 SetBitmapLabel(bitmap
);
36 // we need to adjust the size after setting the bitmap as it may be too
37 // big for the default button size
43 #endif // wxUSE_BMPBUTTON