: wxXmlResourceHandler()
{
ADD_STYLE( wxST_NO_AUTORESIZE );
+ AddWindowStyles();
}
wxObject *wxStaticTextXmlHandler::DoCreateResource()
{
- wxStaticText *text = new wxStaticText(m_ParentAsWindow,
+ wxStaticText *text = new wxStaticText(m_parentAsWindow,
GetID(),
- GetText(_T("label")),
+ GetText(wxT("label")),
GetPosition(), GetSize(),
GetStyle(),
GetName()
bool wxStaticTextXmlHandler::CanHandle(wxXmlNode *node)
{
- return node->GetName() == _T("statictext");
+ return IsOfClass(node, wxT("wxStaticText"));
}