]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_collpane.cpp
Added named section 'Property development funcions'
[wxWidgets.git] / src / xrc / xh_collpane.cpp
index 7134ccd2ab2d786e0c02d28a95a58d0bac5c08d9..93ab13c3973e9dd4fec13fcd76f463109cbe3955 100644 (file)
@@ -26,7 +26,8 @@
 
 IMPLEMENT_DYNAMIC_CLASS(wxCollapsiblePaneXmlHandler, wxXmlResourceHandler)
 
-wxCollapsiblePaneXmlHandler::wxCollapsiblePaneXmlHandler() : wxXmlResourceHandler()
+wxCollapsiblePaneXmlHandler::wxCollapsiblePaneXmlHandler() 
+: wxXmlResourceHandler(), m_isInside(false)
 {
     XRC_ADD_STYLE(wxCP_NO_TLW_RESIZE);
     XRC_ADD_STYLE(wxCP_DEFAULT_STYLE);
@@ -53,7 +54,7 @@ wxObject *wxCollapsiblePaneXmlHandler::DoCreateResource()
         }
         else
         {
-            wxLogError(wxT("Error in resource: no control within collapsible pane's <panewindow> tag."));
+            ReportError("no control within panewindow");
             return NULL;
         }
     }
@@ -64,7 +65,7 @@ wxObject *wxCollapsiblePaneXmlHandler::DoCreateResource()
         wxString label = GetParamValue(wxT("label"));
         if (label.empty())
         {
-            wxLogError(wxT("Error in resource: empty label for wxCollapsiblePane"));
+            ReportParamError("label", "label cannot be empty");
             return NULL;
         }