]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xh_gauge.cpp
added wxXmlResourceHandler::GetDimension for 1D values that may be in dialog units
[wxWidgets.git] / contrib / src / xml / xh_gauge.cpp
index 5a4f227ff827ca23995e0e5c23ddf155463cd225..14394613adb0eba6378cbae6bf3c6d712f9bb7e0 100644 (file)
@@ -50,11 +50,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);