X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/90e586840b79c936751bf8305ea4f51c6c283791..519cb848a8f4c91c73421bb75314754284e593a4:/samples/splitter/test.cpp?ds=sidebyside diff --git a/samples/splitter/test.cpp b/samples/splitter/test.cpp index c44103a332..d443b1ad67 100644 --- a/samples/splitter/test.cpp +++ b/samples/splitter/test.cpp @@ -35,7 +35,8 @@ public: 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; } @@ -165,6 +166,9 @@ MyFrame::MyFrame(wxFrame* frame, const wxString& title, const wxPoint& pos, cons 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);