]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_treebk.cpp
adding support for focus events to multiline textctrl
[wxWidgets.git] / src / xrc / xh_treebk.cpp
index d3d427dfba7f35fed7cfa7197b1b01177c74ca15..cd199b7bb68c0863f325172f17256a1ac97abeda 100644 (file)
@@ -95,7 +95,9 @@ wxObject *wxTreebookXmlHandler::DoCreateResource()
         wnd = wxDynamicCast(item, wxWindow);
 
         if (wnd == NULL && item != NULL)
-            wxLogError(wxT("Error in resource: control within treebook's <page> tag is not a window."));
+        {
+            ReportError(n, "treebookpage child must be a window");
+        }
     }
 
     size_t depth = GetLong( wxT("depth") );
@@ -134,7 +136,10 @@ wxObject *wxTreebookXmlHandler::DoCreateResource()
 
     }
     else
-        wxLogError(wxT("Error in resource. wxTreebookPage has an invalid depth."));
+    {
+        ReportParamError("depth", "invalid depth");
+    }
+
     return wnd;
 }