I would like to achieve something I think being pretty simple.
On a panel, I have a wxTreeCtrl on its right a simple panel and under it a button.
The idea is that the button should always be minimal and the rest of the space should be split in between the treectrl and the panel as 3/4 for the first, 1/4 for the other.
this is the code I am using :
Code: Select all
main_sizer = new wxFlexGridSizer(2,2,1,1); tree = new wxTreeCtrl(this, TEST_TREE); button = new wxButton(this, TEST_BUTTON, _("Test")); pan = new wxPanel(this,wxID_ANY); main_sizer->Add(tree,3,wxEXPAND,0); main_sizer->Add(pan,1,wxEXPAND,0); main_sizer->Add(button); SetSizer(main_sizer);
What am I doing wrong?