How change wxAuiManager behaviour?

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
AndrzejB
Earned some good credits
Earned some good credits
Posts: 105
Joined: Sun Nov 29, 2015 12:46 pm

How change wxAuiManager behaviour?

Post by AndrzejB »

wxAuiManager is a very nice control.
I use after https://www.kirix.com/labs/wxaui/docume ... mples.html but is one big bottom window below two windows and I prefer one left window and right window divide to bottom and center. Is (center+left)+bottom and I prefer (center+bottom)+left.
Is possible change it?
rando
Knows some wx things
Knows some wx things
Posts: 35
Joined: Fri Nov 09, 2018 9:11 pm

Re: How change wxAuiManager behaviour?

Post by rando »

I am not sure exactly what you mean but the code to position the panes is

Code: Select all

     // add the panes to the manager
     m_mgr.AddPane(text1, wxLEFT, wxT("Pane Number One"));
     m_mgr.AddPane(text2, wxBOTTOM, wxT("Pane Number Two"));
     m_mgr.AddPane(text3, wxCENTER);
The panes are positioned with the wxLEFT, wxBOTTOM, wxCENTER defines.

Read the docs for wxAuiManager at https://docs.wxwidgets.org/3.0/classwx_ ... 2cf487ffb3
AndrzejB
Earned some good credits
Earned some good credits
Posts: 105
Joined: Sun Nov 29, 2015 12:46 pm

Re: How change wxAuiManager behaviour?

Post by AndrzejB »

But BOTTOM is below CENTER and LEFT, and what do BOTTOM should be below CENTER but not LEFT ?
rando
Knows some wx things
Knows some wx things
Posts: 35
Joined: Fri Nov 09, 2018 9:11 pm

Re: How change wxAuiManager behaviour?

Post by rando »

Your best bet for understanding is to change those flags, recompile, and see how the layout changes.
Change wxLEFT to wxRIGHT, compile and see how it looks.
Change wxBOTTOM to wxTOP, compile, and see how it looks.
... and so on.
AndrzejB
Earned some good credits
Earned some good credits
Posts: 105
Joined: Sun Nov 29, 2015 12:46 pm

Re: How change wxAuiManager behaviour?

Post by AndrzejB »

I solved it by TWO managers: one manager has tree on left and panel on center. Panel has second manager with two controls center and bottom.
Post Reply