I have the following Layout:
a Frame (this in the following code).
Then I define a wxBoxsizer and assign it to the Frame: this->SetSizer(mainSizer);
Then I define three panels and put them in the main sizer.
Code: Select all
m_panel_top = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDefaultSize);
m_panel_center = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDefaultSize);
m_panel_bottom = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDefaultSize);
mainSizer->Add(m_panel_top, 1, wxEXPAND);
mainSizer->Add(m_panel_center, 1, wxEXPAND);
mainSizer->Add(m_panel_rbottom, 1, wxEXPAND);
In the center panel I define a splitterSizer and create a splitwindows etc..... This is shown correctly.
In the bottom panel I create a bottomSizer and some controls then set the sizer to the bottom sizer but this one is not displayed:
m_panel_bottom->SetSizer(bottomSizer );
any clue?