: wxXmlResourceHandler()
{
ADD_STYLE( wxRB_GROUP );
+ AddWindowStyles();
}
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;
bool wxRadioButtonXmlHandler::CanHandle(wxXmlNode *node)
{
- return node->GetName() == _T("radiobutton");
+ return IsOfClass(node, wxT("wxRadioButton"));
}