]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xh_gauge.cpp
added 'name' to wxEditableListBox ctor
[wxWidgets.git] / contrib / src / xml / xh_gauge.cpp
index 14394613adb0eba6378cbae6bf3c6d712f9bb7e0..9e7d7fcf5aedb0bab9d5051c2d7fe59cc4252845 100644 (file)
@@ -31,30 +31,31 @@ 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()
 { 
-    wxGauge *control = new wxGauge(m_ParentAsWindow,
+    wxGauge *control = new wxGauge(m_parentAsWindow,
                                     GetID(),
                                     GetID(),
-                                    GetLong( _T("range"), wxGAUGE_DEFAULT_RANGE), 
+                                    GetLong( wxT("range"), wxGAUGE_DEFAULT_RANGE), 
                                     GetPosition(), GetSize(),
                                     GetStyle(),
                                     wxDefaultValidator,
                                     GetName()
                                     );
 
                                     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( GetDimension( _T("shadow") ));
+        control->SetShadowWidth( GetDimension( wxT("shadow") ));
     }
     }
-    if( HasParam( _T("bezel") ))
+    if( HasParam( wxT("bezel") ))
     {
     {
-        control->SetBezelFace( GetDimension( _T("bezel") ));
+        control->SetBezelFace( GetDimension( wxT("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, wxT("wxGauge"));
 }
 
 
 }