#include "wx/button.h"
+wxButtonXmlHandler::wxButtonXmlHandler()
+: wxXmlResourceHandler()
+{
+ AddWindowStyles();
+}
+
+
wxObject *wxButtonXmlHandler::DoCreateResource()
{
- wxButton *button = new wxButton(m_ParentAsWindow,
+ wxButton *button = new wxButton(m_parentAsWindow,
GetID(),
- GetText(_T("label")),
+ GetText(wxT("label")),
GetPosition(), GetSize(),
GetStyle(),
wxDefaultValidator,
GetName());
- if (GetBool(_T("default"), 0) == 1) button->SetDefault();
+ if (GetBool(wxT("default"), 0) == 1) button->SetDefault();
SetupWindow(button);
return button;
bool wxButtonXmlHandler::CanHandle(wxXmlNode *node)
{
- return node->GetName() == _T("button");
+ return IsOfClass(node, wxT("wxButton"));
}