-{
- wxBitmapButton *button = new wxBitmapButton(m_parentAsWindow,
- GetID(),
- GetBitmap(wxT("bitmap")),
- GetPosition(), GetSize(),
- GetStyle(wxT("style"), wxBU_AUTODRAW),
- wxDefaultValidator,
- GetName());
- if (GetBool(wxT("default"), 0) == 1) button->SetDefault();
+{
+ XRC_MAKE_INSTANCE(button, wxBitmapButton)
+
+ button->Create(m_parentAsWindow,
+ GetID(),
+ GetBitmap(wxT("bitmap"), wxART_BUTTON),
+ GetPosition(), GetSize(),
+ GetStyle(wxT("style"), wxBU_AUTODRAW),
+ wxDefaultValidator,
+ GetName());
+ if (GetBool(wxT("default"), 0))
+ button->SetDefault();