Multiple SplitterWindows

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
eros
I live to help wx-kind
I live to help wx-kind
Posts: 162
Joined: Mon Sep 06, 2004 1:40 am
Location: Argentina

Multiple SplitterWindows

Post by eros »

Can one of the splitter window have another splitterwindow in one of this panels?

which type of window should I create to assing into one of the panes and then add another splitter?
...
Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg »

If your window is a wxFrame, I would suggest wxSashLayoutWindow which you can find in the sash test sample. That's a better way of splitting then using splitters which are really meant for simple splitting (and have their quirks)..

- Jorgen
eros
I live to help wx-kind
I live to help wx-kind
Posts: 162
Joined: Mon Sep 06, 2004 1:40 am
Location: Argentina

Post by eros »

Yes the main frame shoid be a wxFrame (as I need a menu, a toolbar and a statusbar), the thing is that I need to split the frame vertically, and then split each pan it horizontally 2 times. This figure will demontrate what I need:

Code: Select all

 _____
|__|__|
|__|__|
|__|__|
The vertical sash is the "main" sash.

Is wxSashLayoutWindow capable of what I need?
...
Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg »

Yes i think so. check out the sash sample. It is in contrib/sash ..

- Jorgen
eros
I live to help wx-kind
I live to help wx-kind
Posts: 162
Joined: Mon Sep 06, 2004 1:40 am
Location: Argentina

Post by eros »

I only see simple splitter under \samples.

Are you using 2.4.2?
...
Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg »

I have it in:

wxWindows-2.4.2\samples\sashtest\

- Jorgen
eros
I live to help wx-kind
I live to help wx-kind
Posts: 162
Joined: Mon Sep 06, 2004 1:40 am
Location: Argentina

Post by eros »

Just saw it, pretty much what I need, thx
...
eco
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 203
Joined: Tue Aug 31, 2004 7:06 pm
Location: Behind a can of Mountain Dew
Contact:

Post by eco »

Like said before, use Sash windows but to answer you initial question, yes, you can.
Post Reply