- wxSpinCtrl *control = new wxSpinCtrl(m_parentAsWindow,
- GetID(),
- GetText(wxT("value")),
- GetPosition(), GetSize(),
- GetStyle( wxT("style"), wxSP_ARROW_KEYS ),
- GetLong( wxT("min"), wxSP_DEFAULT_MIN),
- GetLong( wxT("max"), wxSP_DEFAULT_MAX),
- GetLong( wxT("value"), wxSP_DEFAULT_VALUE),
- GetName()
- );
+ XRC_MAKE_INSTANCE(control, wxSpinCtrl)
+
+ control->Create(m_parentAsWindow,
+ GetID(),
+ GetText(wxT("value")),
+ GetPosition(), GetSize(),
+ GetStyle(wxT("style"), wxSP_ARROW_KEYS),
+ GetLong(wxT("min"), wxSP_DEFAULT_MIN),
+ GetLong(wxT("max"), wxSP_DEFAULT_MAX),
+ GetLong(wxT("value"), wxSP_DEFAULT_VALUE),
+ GetName());