How to make multiple splitter

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
nicks1980
In need of some credit
In need of some credit
Posts: 5
Joined: Tue Jan 24, 2017 9:52 am

How to make multiple splitter

Post by nicks1980 » Tue Jan 31, 2017 6:38 pm

Componet
splitter
Componet
splitter
Componet
splitter
Componet
splitter

User avatar
doublemax
Moderator
Moderator
Posts: 15069
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: How to make multiple splitter

Post by doublemax » Tue Jan 31, 2017 7:15 pm

You can use nested splitters, but it will look weird from a user's point of view. If you have several "grabbable" separators, the user will expect to change only the size of the left and right window of that sash. But with multiple nested sizers, it won't work that way.

Unfortunately there is no better solution in wxWidgets.

IOW: I'd try to avoid this.
Use the source, Luke!

nicks1980
In need of some credit
In need of some credit
Posts: 5
Joined: Tue Jan 24, 2017 9:52 am

Re: How to make multiple splitter

Post by nicks1980 » Wed Feb 01, 2017 10:10 am

lternatives to wxSplitterWindow
If you have a lot of “split” windows in your application, consider using
wxSashWindow
. This is a window that allows any of its edges to have a sash (as
specified by the application) that can be dragged to resize the window. The
actual content window is normally created by the application as a child of
wxSashWindow
.
from book

Post Reply