ADD_STYLE( wxGA_VERTICAL );
ADD_STYLE( wxGA_PROGRESSBAR );
ADD_STYLE( wxGA_SMOOTH ); // windows only
+ AddWindowStyles();
}
wxObject *wxGaugeXmlHandler::DoCreateResource()
}
if( HasParam( _T("shadow") ))
{
- control->SetShadowWidth( GetLong( _T("shadow") ));
+ control->SetShadowWidth( GetDimension( _T("shadow") ));
}
if( HasParam( _T("bezel") ))
{
- control->SetBezelFace( GetLong( _T("bezel") ));
+ control->SetBezelFace( GetDimension( _T("bezel") ));
}
SetupWindow(control);
bool wxGaugeXmlHandler::CanHandle(wxXmlNode *node)
{
- return node->GetName() == _T("gauge");
+ return IsOfClass(node, _T("wxGauge"));
}