wxObject *wxSpinButtonXmlHandler::DoCreateResource()
{
- wxSpinButton *control = new wxSpinButton(m_ParentAsWindow,
+ wxSpinButton *control = new wxSpinButton(m_parentAsWindow,
GetID(),
GetPosition(), GetSize(),
GetStyle( wxT("style"), wxSP_VERTICAL | wxSP_ARROW_KEYS ),
bool wxSpinButtonXmlHandler::CanHandle(wxXmlNode *node)
{
- return node->GetName() == wxT("spinbutton");
+ return IsOfClass(node, wxT("wxSpinButton"));
}
#endif // wxUSE_SPINBTN
wxObject *wxSpinCtrlXmlHandler::DoCreateResource()
{
- wxSpinCtrl *control = new wxSpinCtrl(m_ParentAsWindow,
+ wxSpinCtrl *control = new wxSpinCtrl(m_parentAsWindow,
GetID(),
GetText(wxT("value")),
GetPosition(), GetSize(),