ADD_STYLE( wxSP_VERTICAL );
ADD_STYLE( wxSP_ARROW_KEYS );
ADD_STYLE( wxSP_WRAP );
+ AddWindowStyles();
}
wxObject *wxSpinButtonXmlHandler::DoCreateResource()
{
wxSpinCtrl *control = new wxSpinCtrl(m_ParentAsWindow,
GetID(),
- GetText(_T("label")),
+ GetText(_T("value")),
GetPosition(), GetSize(),
GetStyle( _T("style"), wxSP_ARROW_KEYS ),
GetLong( _T("min"), wxSP_DEFAULT_MIN),
bool wxSpinCtrlXmlHandler::CanHandle(wxXmlNode *node)
{
- return node->GetName() == _T("spinctrl");
+ return IsOfClass(node, _T("wxSpinCtrl"));
}
#endif // wxUSE_SPINCTRL