X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cabf4bca21709a501ca1fe13311744b3830bf28c..4b263e5ef358411a345dee9ffef3ba69c19be40e:/src/xrc/xh_split.cpp diff --git a/src/xrc/xh_split.cpp b/src/xrc/xh_split.cpp index fd21911808..6f15a3bb1c 100644 --- a/src/xrc/xh_split.cpp +++ b/src/xrc/xh_split.cpp @@ -3,7 +3,6 @@ // Purpose: XRC resource for wxSplitterWindow // Author: panga@freemail.hu, Vaclav Slavik // Created: 2003/01/26 -// RCS-ID: $Id$ // Copyright: (c) 2003 panga@freemail.hu, Vaclav Slavik // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -25,6 +24,8 @@ #include "wx/splitter.h" +#include "wx/xml/xml.h" + IMPLEMENT_DYNAMIC_CLASS(wxSplitterWindowXmlHandler, wxXmlResourceHandler) wxSplitterWindowXmlHandler::wxSplitterWindowXmlHandler() : wxXmlResourceHandler() @@ -55,8 +56,8 @@ wxObject *wxSplitterWindowXmlHandler::DoCreateResource() SetupWindow(splitter); - long sashpos = GetLong(wxT("sashpos"), 0); - long minpanesize = GetLong(wxT("minsize"), -1); + long sashpos = GetDimension(wxT("sashpos"), 0); + long minpanesize = GetDimension(wxT("minsize"), -1); float gravity = GetFloat(wxT("gravity"), 0.0); if (minpanesize != -1) splitter->SetMinimumPaneSize(minpanesize); @@ -87,7 +88,7 @@ wxObject *wxSplitterWindowXmlHandler::DoCreateResource() } if (win1 == NULL) - wxLogError(wxT("wxSplitterWindow node must contain at least one window.")); + ReportError("wxSplitterWindow node must contain at least one window"); bool horizontal = (GetParamValue(wxT("orientation")) != wxT("vertical")); if (win1 && win2)