-{
- 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()
- );
-
- if( HasParam( wxT("tickfreq") ))
+{
+ XRC_MAKE_INSTANCE(control, wxSlider)
+
+ control->Create(m_parentAsWindow,
+ GetID(),
+ GetLong(wxT("value"), DEFAULT_VALUE),
+ GetLong(wxT("min"), DEFAULT_MIN),
+ GetLong(wxT("max"), DEFAULT_MAX),
+ GetPosition(), GetSize(),
+ GetStyle(),
+ wxDefaultValidator,
+ GetName());
+
+ if( HasParam(wxT("tickfreq")))