+ m_panelLeft = new wxPanel( m_splitter, wxID_ANY, wxDefaultPosition, wxDefaultSize,
+ wxNO_BORDER );
+ m_panelRight = new wxPanel( m_splitter, wxID_ANY, wxDefaultPosition, wxDefaultSize,
+ wxNO_BORDER );
+ wxSizer *szLeft = new wxBoxSizer(wxVERTICAL);
+ wxSizer *szRight = new wxBoxSizer(wxVERTICAL);
+
+ dataview_left = NULL;
+ dataview_right = NULL;
+ CreateDataViewControls();
+
+ // left panel
+ szLeft->Add( dataview_left, 1, wxGROW|wxALL, 5 );
+ m_panelLeft->SetSizerAndFit(szLeft);
+
+ // right panel
+ wxStaticText *stattext =
+ new wxStaticText(m_panelRight, wxID_ANY,
+ wxT("This is another wxDataViewCtrl using the same wxDataViewModel ")
+ wxT("of the wxDataViewCtrl on the left but, unlike it, this window ")
+ wxT("won't react to the style/column changes done through the ")
+ wxT("'DataViewCtrl' menu"));
+ stattext->Wrap(GetClientSize().GetWidth() / 2);
+
+ szRight->Add( stattext, 0, wxALL, 5 );
+ szRight->Add( dataview_right, 1, wxGROW|wxALL, 5 );
+ m_panelRight->SetSizerAndFit(szRight);
+
+ // split the two panels
+ m_splitter->SplitVertically(m_panelLeft, m_panelRight);
+ this->SetMinSize(m_splitter->GetBestSize());