+ wxXmlNode *n = GetParamNode(wxT("object"));
+
+ if (n)
+ {
+ bool old_ins = m_isInside;
+ m_isInside = FALSE;
+ m_isInside = old_ins;
+ wxObject *item = CreateResFromNode(n, m_notebook, NULL);
+ wxWindow *wnd = wxDynamicCast(item, wxWindow);
+
+ if (wnd)
+ m_notebook->AddPage(wnd, GetText(wxT("label")),
+ GetBool(wxT("selected"), 0));
+ else
+ wxLogError(wxT("Error in resource."));
+ return wnd;
+ }
+ else