-MyCanvas::MyCanvas(wxWindow* parent, wxWindowID id, const wxPoint& point, const wxSize& size, const wxString &name ) :
- wxScrolledWindow(parent, id, point, size, 0, name )
+void MySplitterWindow::OnPositionChanged(wxSplitterEvent& event)
+{
+ wxLogStatus(m_frame, _T("Position has changed, now = %d (or %d)"),
+ event.GetSashPosition(), GetSashPosition());
+
+ event.Skip();
+}
+
+void MySplitterWindow::OnPositionChanging(wxSplitterEvent& event)
+{
+ wxLogStatus(m_frame, _T("Position is changing, now = %d (or %d)"),
+ event.GetSashPosition(), GetSashPosition());
+
+ event.Skip();
+}
+
+void MySplitterWindow::OnDClick(wxSplitterEvent& event)
+{
+ m_frame->SetStatusText(_T("Splitter double clicked"), 1);
+
+ event.Skip();
+}
+
+void MySplitterWindow::OnUnsplit(wxSplitterEvent& event)
+{
+ m_frame->SetStatusText(_T("Splitter unsplit"), 1);
+
+ event.Skip();
+}
+
+// ----------------------------------------------------------------------------
+// MyCanvas
+// ----------------------------------------------------------------------------
+
+MyCanvas::MyCanvas(wxWindow* parent)
+ : wxScrolledWindow(parent, -1)