+ // allow TABbing from one window to the other
+ style |= wxTAB_TRAVERSAL;
+
+ // we draw our border ourselves to blend the sash with it
+ style &= ~wxBORDER_MASK;
+ style |= wxBORDER_NONE;
+
+#ifdef __WXMAC__
+ // CoreGraphics can't paint sash feedback
+ style |= wxSP_LIVE_UPDATE;
+#endif
+
+ if ( !wxWindow::Create(parent, id, pos, size, style, name) )
+ return false;
+
+ if (size.x >= 0)
+ m_lastSize.x = size.x;
+ if (size.y >= 0)
+ m_lastSize.y = size.y;
+
+ m_permitUnsplitAlways = (style & wxSP_PERMIT_UNSPLIT) != 0;
+
+ // FIXME: with this line the background is not erased at all under GTK1,
+ // so temporary avoid it there
+#if !defined(__WXGTK__) || defined(__WXGTK20__)
+ // don't erase the splitter background, it's pointless as we overwrite it
+ // anyhow
+ SetBackgroundStyle(wxBG_STYLE_CUSTOM);
+#endif
+
+ return true;
+}
+
+void wxSplitterWindow::Init()
+{
+ WX_INIT_CONTROL_CONTAINER();
+