ADD_STYLE(wxNO_3D);
ADD_STYLE(wxTAB_TRAVERSAL);
ADD_STYLE(wxWS_EX_VALIDATE_RECURSIVELY);
+ ADD_STYLE(wxCLIP_CHILDREN);
+ AddWindowStyles();
}
dlg->Create(m_ParentAsWindow,
GetID(),
- GetText(_T("title")),
+ GetText(wxT("title")),
wxDefaultPosition, wxDefaultSize,
- GetStyle(_T("style"), wxDEFAULT_DIALOG_STYLE),
+ GetStyle(wxT("style"), wxDEFAULT_DIALOG_STYLE),
GetName());
dlg->SetClientSize(GetSize());
dlg->Move(GetPosition());
CreateChildren(dlg);
+ if (GetBool(_("centered"), FALSE))
+ dlg->Centre();
+
return dlg;
}
bool wxDialogXmlHandler::CanHandle(wxXmlNode *node)
{
- return node->GetName() == _T("dialog");
+ return IsOfClass(node, wxT("wxDialog"));
}