- wxGauge *control = new wxGauge(m_parentAsWindow,
- GetID(),
- GetLong( wxT("range"), wxGAUGE_DEFAULT_RANGE),
- GetPosition(), GetSize(),
- GetStyle(),
- wxDefaultValidator,
- GetName()
- );
+ XRC_MAKE_INSTANCE(control, wxGauge)
+
+ control->Create(m_parentAsWindow,
+ GetID(),
+ GetLong(wxT("range"), wxGAUGE_DEFAULT_RANGE),
+ GetPosition(), GetSize(),
+ GetStyle(),
+ wxDefaultValidator,
+ GetName());