X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/56d2f75071fc2a29ec10abe97c5a908bb35f30f4..b1229561e530e829f61887930f2004d9814743b0:/contrib/src/xml/xh_gauge.cpp?ds=inline diff --git a/contrib/src/xml/xh_gauge.cpp b/contrib/src/xml/xh_gauge.cpp index 5a4f227ff8..5989d2859f 100644 --- a/contrib/src/xml/xh_gauge.cpp +++ b/contrib/src/xml/xh_gauge.cpp @@ -31,6 +31,7 @@ wxGaugeXmlHandler::wxGaugeXmlHandler() ADD_STYLE( wxGA_VERTICAL ); ADD_STYLE( wxGA_PROGRESSBAR ); ADD_STYLE( wxGA_SMOOTH ); // windows only + AddWindowStyles(); } wxObject *wxGaugeXmlHandler::DoCreateResource() @@ -50,11 +51,11 @@ 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); @@ -66,7 +67,7 @@ wxObject *wxGaugeXmlHandler::DoCreateResource() bool wxGaugeXmlHandler::CanHandle(wxXmlNode *node) { - return node->GetName() == _T("gauge"); + return IsOfClass(node, _T("wxGauge")); }