#endif
#include "wx/defs.h"
+
+#if wxUSE_BMPBUTTON
+
#include "wx/object.h"
#include "wx/list.h"
#include "wx/control.h"
#include "wx/bitmap.h"
+#include "wx/button.h"
//-----------------------------------------------------------------------------
// classes
// global data
//-----------------------------------------------------------------------------
-extern const char *wxButtonNameStr;
+extern const wxChar *wxButtonNameStr;
//-----------------------------------------------------------------------------
// wxBitmapButton
//-----------------------------------------------------------------------------
-class wxBitmapButton: public wxControl
+class wxBitmapButton: public wxButton
{
DECLARE_DYNAMIC_CLASS(wxBitmapButton)
const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr);
- void SetDefault();
+ virtual void SetDefault();
void SetLabel( const wxString &label );
wxString GetLabel() const;
void SetBitmapLabel( const wxBitmap& bitmap );
void SetBitmapSelected( const wxBitmap& bitmap );
- virtual void Enable(const bool);
+ virtual bool Enable(bool enable);
// implementation
wxBitmap m_selected;
};
+#endif
+
#endif // __BMPBUTTONH__