X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/56d2f75071fc2a29ec10abe97c5a908bb35f30f4..892aeafc2a0212b4c3bebcaddd96a42cdd307afd:/contrib/src/xml/xh_radbt.cpp diff --git a/contrib/src/xml/xh_radbt.cpp b/contrib/src/xml/xh_radbt.cpp index bdcbfe5925..4be009e0a9 100644 --- a/contrib/src/xml/xh_radbt.cpp +++ b/contrib/src/xml/xh_radbt.cpp @@ -28,6 +28,7 @@ wxRadioButtonXmlHandler::wxRadioButtonXmlHandler() : wxXmlResourceHandler() { ADD_STYLE( wxRB_GROUP ); + AddWindowStyles(); } wxObject *wxRadioButtonXmlHandler::DoCreateResource() @@ -41,14 +42,14 @@ wxObject *wxRadioButtonXmlHandler::DoCreateResource() wxRadioButton *control = new wxRadioButton(m_ParentAsWindow, GetID(), - GetText(_T("label")), + GetText(wxT("label")), GetPosition(), GetSize(), GetStyle(), wxDefaultValidator, GetName() ); - control->SetValue( GetBool(_T("value"), 0)); + control->SetValue( GetBool(wxT("value"), 0)); SetupWindow(control); return control; @@ -58,7 +59,7 @@ wxObject *wxRadioButtonXmlHandler::DoCreateResource() bool wxRadioButtonXmlHandler::CanHandle(wxXmlNode *node) { - return node->GetName() == _T("radiobutton"); + return IsOfClass(node, wxT("wxRadioButton")); }