1998-05-20 14:12:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2005-10-29 17:43:11 +00:00
|
|
|
// Name: wx/msw/bmpbuttn.h
|
1998-05-20 14:12:05 +00:00
|
|
|
// Purpose: wxBitmapButton class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
1998-08-07 23:52:45 +00:00
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 14:12:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-07 23:52:45 +00:00
|
|
|
#ifndef _WX_BMPBUTTN_H_
|
|
|
|
#define _WX_BMPBUTTN_H_
|
1998-05-20 14:12:05 +00:00
|
|
|
|
|
|
|
#include "wx/button.h"
|
1999-11-25 22:59:22 +00:00
|
|
|
#include "wx/bitmap.h"
|
2004-09-19 10:08:24 +00:00
|
|
|
#include "wx/brush.h"
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2008-03-26 15:06:00 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxBitmapButton : public wxBitmapButtonBase
|
1998-05-20 14:12:05 +00:00
|
|
|
{
|
1999-07-28 21:01:04 +00:00
|
|
|
public:
|
2011-06-14 13:00:42 +00:00
|
|
|
wxBitmapButton() {}
|
2005-10-29 17:43:11 +00:00
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
wxBitmapButton(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxBitmap& bitmap,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxBU_AUTODRAW,
|
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxButtonNameStr)
|
1999-07-28 21:01:04 +00:00
|
|
|
{
|
|
|
|
Create(parent, id, bitmap, pos, size, style, validator, name);
|
|
|
|
}
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxBitmap& bitmap,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxBU_AUTODRAW,
|
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxButtonNameStr);
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2004-03-16 21:58:53 +00:00
|
|
|
protected:
|
2004-10-03 13:46:11 +00:00
|
|
|
DECLARE_EVENT_TABLE()
|
2003-07-22 00:24:07 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxBitmapButton)
|
1998-05-20 14:12:05 +00:00
|
|
|
};
|
|
|
|
|
2005-11-03 01:48:10 +00:00
|
|
|
#endif // _WX_BMPBUTTN_H_
|