X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/56d2f75071fc2a29ec10abe97c5a908bb35f30f4..f2ab8671bf5433eee5862bfa723feb54e4d63e9f:/contrib/src/xml/xh_spin.cpp diff --git a/contrib/src/xml/xh_spin.cpp b/contrib/src/xml/xh_spin.cpp index 320813c999..24f046fd16 100644 --- a/contrib/src/xml/xh_spin.cpp +++ b/contrib/src/xml/xh_spin.cpp @@ -31,6 +31,7 @@ wxSpinButtonXmlHandler::wxSpinButtonXmlHandler() ADD_STYLE( wxSP_VERTICAL ); ADD_STYLE( wxSP_ARROW_KEYS ); ADD_STYLE( wxSP_WRAP ); + AddWindowStyles(); } wxObject *wxSpinButtonXmlHandler::DoCreateResource() @@ -74,7 +75,7 @@ wxObject *wxSpinCtrlXmlHandler::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), @@ -92,7 +93,7 @@ wxObject *wxSpinCtrlXmlHandler::DoCreateResource() bool wxSpinCtrlXmlHandler::CanHandle(wxXmlNode *node) { - return node->GetName() == _T("spinctrl"); + return IsOfClass(node, _T("wxSpinCtrl")); } #endif // wxUSE_SPINCTRL