#pragma hdrstop
#endif
-#if wxUSE_XRC
+#if wxUSE_XRC && wxUSE_SPLITTER
#include "wx/xrc/xh_split.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/log.h"
+#endif
+
#include "wx/splitter.h"
-#include "wx/log.h"
IMPLEMENT_DYNAMIC_CLASS(wxSplitterWindowXmlHandler, wxXmlResourceHandler)
long sashpos = GetLong(wxT("sashpos"), 0);
long minpanesize = GetLong(wxT("minsize"), -1);
+ float gravity = GetFloat(wxT("gravity"), 0.0);
if (minpanesize != -1)
- splitter->SetMinimumPaneSize(minpanesize);
+ splitter->SetMinimumPaneSize(minpanesize);
+ if (gravity != 0.0)
+ splitter->SetSashGravity(gravity);
wxWindow *win1 = NULL, *win2 = NULL;
wxXmlNode *n = m_node->GetChildren();
return IsOfClass(node, wxT("wxSplitterWindow"));
}
-#endif // wxUSE_XRC
+#endif // wxUSE_XRC && wxUSE_SPLITTER