class MySplitterWindow : public wxSplitterWindow
{
public:
- MySplitterWindow(wxFrame *parent, wxWindowID id) : wxSplitterWindow(parent, id)
+ MySplitterWindow(wxFrame *parent, wxWindowID id)
+ : wxSplitterWindow(parent, id, wxDefaultPosition, wxDefaultSize, wxSP_3D | wxSP_LIVE_UPDATE)
{
m_frame = parent;
}
SetMenuBar(menuBar);
m_splitter = new MySplitterWindow(this, SPLITTER_WINDOW);
+
+ wxSize sz( m_splitter->GetSize() );
+ wxLogMessage( "Initial splitter size: %d %d\n", (int)sz.x, (int)sz.y );
m_leftCanvas = new MyCanvas(m_splitter, CANVAS1, 0, 0, 400, 400, "Test1" );
m_leftCanvas->SetBackgroundColour(*wxRED);