- wxSlider *control = new wxSlider(m_parentAsWindow,
- GetID(),
- GetLong( wxT("value"), wxSL_DEFAULT_VALUE),
- GetLong( wxT("min"), wxSL_DEFAULT_MIN),
- GetLong( wxT("max"), wxSL_DEFAULT_MAX),
- GetPosition(), GetSize(),
- GetStyle(),
- wxDefaultValidator,
- GetName()
- );
+ XRC_MAKE_INSTANCE(control, wxSlider)
+
+ control->Create(m_parentAsWindow,
+ GetID(),
+ GetLong(wxT("value"), wxSL_DEFAULT_VALUE),
+ GetLong(wxT("min"), wxSL_DEFAULT_MIN),
+ GetLong(wxT("max"), wxSL_DEFAULT_MAX),
+ GetPosition(), GetSize(),
+ GetStyle(),
+ wxDefaultValidator,
+ GetName());