X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/56d2f75071fc2a29ec10abe97c5a908bb35f30f4..26ffe1fdba1c3b11bb6b870fc477ac460bf6bd17:/contrib/src/xml/xh_radbt.cpp diff --git a/contrib/src/xml/xh_radbt.cpp b/contrib/src/xml/xh_radbt.cpp index bdcbfe5925..2c3bc840be 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() @@ -39,16 +40,16 @@ wxObject *wxRadioButtonXmlHandler::DoCreateResource() * normal radio button. */ - wxRadioButton *control = new wxRadioButton(m_ParentAsWindow, + 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")); }