class WXDLLEXPORT wxButton : public wxButtonBase
{
public:
- wxButton();
+ wxButton() { Init(); }
wxButton(wxWindow *parent,
wxWindowID id,
const wxBitmap& bitmap,
const wxSize& size = wxDefaultSize,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxButtonNameStr);
+ const wxString& name = wxButtonNameStr)
+ {
+ Init();
+
+ Create(parent, id, bitmap, label, pos, size, style, validator, name);
+ }
wxButton(wxWindow *parent,
wxWindowID id,
const wxSize& size = wxDefaultSize,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxButtonNameStr);
+ const wxString& name = wxButtonNameStr)
+ {
+ Init();
+
+ Create(parent, id, label, pos, size, style, validator, name);
+ }
bool Create(wxWindow *parent,
wxWindowID id,