git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15365
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
class wxBitmapButton: public wxBitmapButtonBase
{
public:
class wxBitmapButton: public wxBitmapButtonBase
{
public:
+ wxBitmapButton() { Init(); }
+
wxBitmapButton(wxWindow *parent,
wxWindowID id,
const wxBitmap& bitmap,
wxBitmapButton(wxWindow *parent,
wxWindowID id,
const wxBitmap& bitmap,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr)
{
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr)
{
Create(parent, id, bitmap, pos, size, style, validator, name);
}
Create(parent, id, bitmap, pos, size, style, validator, name);
}
bool Create(wxWindow *parent,
wxWindowID id,
const wxBitmap& bitmap,
bool Create(wxWindow *parent,
wxWindowID id,
const wxBitmap& bitmap,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr);
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr);
- virtual void SetDefault();
- virtual bool Enable(bool enable = TRUE);
-
void SetLabel( const wxString &label );
wxString GetLabel() const;
virtual void SetLabel( const wxBitmap& bitmap ) { SetBitmapLabel(bitmap); }
void SetLabel( const wxString &label );
wxString GetLabel() const;
virtual void SetLabel( const wxBitmap& bitmap ) { SetBitmapLabel(bitmap); }
+ virtual void SetDefault();
+ virtual bool Enable(bool enable = TRUE);
+
// implementation
// --------------
// implementation
// --------------
void EndSelect();
void ApplyWidgetStyle();
void EndSelect();
void ApplyWidgetStyle();
- bool m_hasFocus;
- bool m_isSelected;
+ bool m_hasFocus:1;
+ bool m_isSelected:1;
protected:
virtual void OnSetBitmap();
protected:
virtual void OnSetBitmap();
private:
DECLARE_DYNAMIC_CLASS(wxBitmapButton)
};
private:
DECLARE_DYNAMIC_CLASS(wxBitmapButton)
};
class wxBitmapButton: public wxBitmapButtonBase
{
public:
class wxBitmapButton: public wxBitmapButtonBase
{
public:
+ wxBitmapButton() { Init(); }
+
wxBitmapButton(wxWindow *parent,
wxWindowID id,
const wxBitmap& bitmap,
wxBitmapButton(wxWindow *parent,
wxWindowID id,
const wxBitmap& bitmap,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr)
{
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr)
{
Create(parent, id, bitmap, pos, size, style, validator, name);
}
Create(parent, id, bitmap, pos, size, style, validator, name);
}
bool Create(wxWindow *parent,
wxWindowID id,
const wxBitmap& bitmap,
bool Create(wxWindow *parent,
wxWindowID id,
const wxBitmap& bitmap,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr);
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr);
- virtual void SetDefault();
- virtual bool Enable(bool enable = TRUE);
-
void SetLabel( const wxString &label );
wxString GetLabel() const;
virtual void SetLabel( const wxBitmap& bitmap ) { SetBitmapLabel(bitmap); }
void SetLabel( const wxString &label );
wxString GetLabel() const;
virtual void SetLabel( const wxBitmap& bitmap ) { SetBitmapLabel(bitmap); }
+ virtual void SetDefault();
+ virtual bool Enable(bool enable = TRUE);
+
// implementation
// --------------
// implementation
// --------------
void EndSelect();
void ApplyWidgetStyle();
void EndSelect();
void ApplyWidgetStyle();
- bool m_hasFocus;
- bool m_isSelected;
+ bool m_hasFocus:1;
+ bool m_isSelected:1;
protected:
virtual void OnSetBitmap();
protected:
virtual void OnSetBitmap();
private:
DECLARE_DYNAMIC_CLASS(wxBitmapButton)
};
private:
DECLARE_DYNAMIC_CLASS(wxBitmapButton)
};
IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton,wxButton)
IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton,wxButton)
-wxBitmapButton::wxBitmapButton()
+void wxBitmapButton::Init()
+ m_hasFocus =
+ m_isSelected = FALSE;
-bool wxBitmapButton::Create( wxWindow *parent, wxWindowID id, const wxBitmap &bitmap,
- const wxPoint &pos, const wxSize &size,
- long style, const wxValidator& validator, const wxString &name )
+bool wxBitmapButton::Create( wxWindow *parent,
+ wxWindowID id,
+ const wxBitmap& bitmap,
+ const wxPoint& pos,
+ const wxSize& size,
+ long style,
+ const wxValidator& validator,
+ const wxString &name )
{
m_needParent = TRUE;
m_acceptsFocus = TRUE;
{
m_needParent = TRUE;
m_acceptsFocus = TRUE;
IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton,wxButton)
IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton,wxButton)
-wxBitmapButton::wxBitmapButton()
+void wxBitmapButton::Init()
+ m_hasFocus =
+ m_isSelected = FALSE;
-bool wxBitmapButton::Create( wxWindow *parent, wxWindowID id, const wxBitmap &bitmap,
- const wxPoint &pos, const wxSize &size,
- long style, const wxValidator& validator, const wxString &name )
+bool wxBitmapButton::Create( wxWindow *parent,
+ wxWindowID id,
+ const wxBitmap& bitmap,
+ const wxPoint& pos,
+ const wxSize& size,
+ long style,
+ const wxValidator& validator,
+ const wxString &name )
{
m_needParent = TRUE;
m_acceptsFocus = TRUE;
{
m_needParent = TRUE;
m_acceptsFocus = TRUE;