wxObject *wxTextCtrlXmlHandler::DoCreateResource()
{
- wxTextCtrl *text = new wxTextCtrl(m_ParentAsWindow,
+ wxTextCtrl *text = new wxTextCtrl(m_parentAsWindow,
GetID(),
- GetText(_T("value")),
+ GetText(wxT("value")),
GetPosition(), GetSize(),
GetStyle(),
- wxDefaultValidator,
- GetText(_T("name"))
+ wxDefaultValidator,
+ GetName()
);
SetupWindow(text);
bool wxTextCtrlXmlHandler::CanHandle(wxXmlNode *node)
{
- return node->GetName() == _T("textctrl");
+ return IsOfClass(node, wxT("wxTextCtrl"));
}