]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xh_gauge.cpp
test for bug with new wu-ftpd
[wxWidgets.git] / contrib / src / xml / xh_gauge.cpp
index 5a4f227ff827ca23995e0e5c23ddf155463cd225..5989d2859f6611f1f98ecc436197818e0dd51b9d 100644 (file)
@@ -31,6 +31,7 @@ wxGaugeXmlHandler::wxGaugeXmlHandler()
     ADD_STYLE( wxGA_VERTICAL );
     ADD_STYLE( wxGA_PROGRESSBAR );
     ADD_STYLE( wxGA_SMOOTH );   // windows only
     ADD_STYLE( wxGA_VERTICAL );
     ADD_STYLE( wxGA_PROGRESSBAR );
     ADD_STYLE( wxGA_SMOOTH );   // windows only
+    AddWindowStyles();
 }
 
 wxObject *wxGaugeXmlHandler::DoCreateResource()
 }
 
 wxObject *wxGaugeXmlHandler::DoCreateResource()
@@ -50,11 +51,11 @@ wxObject *wxGaugeXmlHandler::DoCreateResource()
     }
     if( HasParam( _T("shadow") ))
     {
     }
     if( HasParam( _T("shadow") ))
     {
-        control->SetShadowWidth( GetLong( _T("shadow") ));
+        control->SetShadowWidth( GetDimension( _T("shadow") ));
     }
     if( HasParam( _T("bezel") ))
     {
     }
     if( HasParam( _T("bezel") ))
     {
-        control->SetBezelFace( GetLong( _T("bezel") ));
+        control->SetBezelFace( GetDimension( _T("bezel") ));
     }
 
     SetupWindow(control);
     }
 
     SetupWindow(control);
@@ -66,7 +67,7 @@ wxObject *wxGaugeXmlHandler::DoCreateResource()
 
 bool wxGaugeXmlHandler::CanHandle(wxXmlNode *node)
 {
 
 bool wxGaugeXmlHandler::CanHandle(wxXmlNode *node)
 {
-    return node->GetName() == _T("gauge");
+    return IsOfClass(node, _T("wxGauge"));
 }
 
 
 }