ADD_STYLE( wxGA_VERTICAL );
ADD_STYLE( wxGA_PROGRESSBAR );
ADD_STYLE( wxGA_SMOOTH ); // windows only
+ AddWindowStyles();
}
wxObject *wxGaugeXmlHandler::DoCreateResource()
{
- wxGauge *control = new wxGauge(m_ParentAsWindow,
+ wxGauge *control = new wxGauge(m_parentAsWindow,
GetID(),
- GetLong( _T("range"), wxGAUGE_DEFAULT_RANGE),
+ GetLong( wxT("range"), wxGAUGE_DEFAULT_RANGE),
GetPosition(), GetSize(),
GetStyle(),
wxDefaultValidator,
GetName()
);
- if( HasParam( _T("value") ))
+ if( HasParam( wxT("value") ))
{
- control->SetValue( GetLong( _T("value") ));
+ control->SetValue( GetLong( wxT("value") ));
}
- if( HasParam( _T("shadow") ))
+ if( HasParam( wxT("shadow") ))
{
- control->SetShadowWidth( GetLong( _T("shadow") ));
+ control->SetShadowWidth( GetDimension( wxT("shadow") ));
}
- if( HasParam( _T("bezel") ))
+ if( HasParam( wxT("bezel") ))
{
- control->SetBezelFace( GetLong( _T("bezel") ));
+ control->SetBezelFace( GetDimension( wxT("bezel") ));
}
SetupWindow(control);
bool wxGaugeXmlHandler::CanHandle(wxXmlNode *node)
{
- return node->GetName() == _T("gauge");
+ return IsOfClass(node, wxT("wxGauge"));
}