-{
- wxStaticText *text = new wxStaticText(m_parentAsWindow,
- GetID(),
- GetText(wxT("label")),
- GetPosition(), GetSize(),
- GetStyle(),
- GetName()
- );
+{
+ XRC_MAKE_INSTANCE(text, wxStaticText)
+
+ text->Create(m_parentAsWindow,
+ GetID(),
+ GetText(wxT("label")),
+ GetPosition(), GetSize(),
+ GetStyle(),
+ GetName());
+