views:

140

answers:

1

I want to create 3 parts in a window or panel. Parts should have possibility to resize by user and be automatically resized when user change size of main window. Its something like 3 panels added to vertical box sizer, but user can resize all of three parts. I can add up to 2 panels to wxSplitterWindow.

Im working with C++, wxWidgets and wxFormBuilder.

+2  A: 

Can you use wxAuiManager? You could use this to create 'panels' (for lack of a better word) that can be resized and moved around. (Even undocked and floated.) For you it would look something like:

wxAuiManager * pManager; // a pointer to the manager for the wxFrame
wxWindow * pPanel1;
wxWindow * pPanel2;   // the 3 panels you want to add
wxWindow * pPanel3;   // they can be wxPanel's or any window

// Add the panels to the window
pManager->AddPane(pPanel1,wxAuiPaneInfo().Top());
pManager->AddPane(pPanel2,wxAuiPaneInfo().Centre());
pManager->AddPane(pPanel3,wxAuiPaneInfo().Bottom());

Hopefully this works for you.

George Edison
I will look at this, thanks.
Piniu
@Piniu: Please accept the answer if it solves your problem. Otherwise please explain what is not working.
George Edison