wxObject *wxSpinButtonXmlHandler::DoCreateResource()
{
- wxSpinButton *control = new wxSpinButton(m_ParentAsWindow,
+ wxSpinButton *control = new wxSpinButton(m_parentAsWindow,
GetID(),
GetPosition(), GetSize(),
- GetStyle( _T("style"), wxSP_VERTICAL | wxSP_ARROW_KEYS ),
+ GetStyle( wxT("style"), wxSP_VERTICAL | wxSP_ARROW_KEYS ),
GetName()
);
- control->SetValue( GetLong( _T("value"), wxSP_DEFAULT_VALUE) );
- control->SetRange( GetLong( _T("min"), wxSP_DEFAULT_MIN),
- GetLong( _T("max"), wxSP_DEFAULT_MAX) );
+ control->SetValue( GetLong( wxT("value"), wxSP_DEFAULT_VALUE) );
+ control->SetRange( GetLong( wxT("min"), wxSP_DEFAULT_MIN),
+ GetLong( wxT("max"), wxSP_DEFAULT_MAX) );
SetupWindow(control);
return control;
bool wxSpinButtonXmlHandler::CanHandle(wxXmlNode *node)
{
- return node->GetName() == _T("spinbutton");
+ return node->GetName() == wxT("spinbutton");
}
#endif // wxUSE_SPINBTN
wxObject *wxSpinCtrlXmlHandler::DoCreateResource()
{
- wxSpinCtrl *control = new wxSpinCtrl(m_ParentAsWindow,
+ wxSpinCtrl *control = new wxSpinCtrl(m_parentAsWindow,
GetID(),
- GetText(_T("value")),
+ GetText(wxT("value")),
GetPosition(), GetSize(),
- GetStyle( _T("style"), wxSP_ARROW_KEYS ),
- GetLong( _T("min"), wxSP_DEFAULT_MIN),
- GetLong( _T("max"), wxSP_DEFAULT_MAX),
- GetLong( _T("value"), wxSP_DEFAULT_VALUE),
+ GetStyle( wxT("style"), wxSP_ARROW_KEYS ),
+ GetLong( wxT("min"), wxSP_DEFAULT_MIN),
+ GetLong( wxT("max"), wxSP_DEFAULT_MAX),
+ GetLong( wxT("value"), wxSP_DEFAULT_VALUE),
GetName()
);
bool wxSpinCtrlXmlHandler::CanHandle(wxXmlNode *node)
{
- return node->GetName() == _T("spinctrl");
+ return IsOfClass(node, wxT("wxSpinCtrl"));
}
#endif // wxUSE_SPINCTRL