Four-split window Topic is solved

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
Inestical
In need of some credit
In need of some credit
Posts: 3
Joined: Sun Feb 18, 2007 6:14 pm
Location: System32

Four-split window

Post by Inestical » Sun Feb 18, 2007 9:47 pm

Hello,

I would like to achieve 'perfect' 4-split window, do I have to use three wxSplitterWindow's and update one when second is updated?

I'm asking; is there any 'easier' way to achieve this?

edit:
I've looked up some information (with no success) and it seems there isn't any other choice.. I haven't tried this yet, since I'm working on some other stuff.

Or is there?

Thanks in advance
Randomness to the end 0.o

FlyingIsFun1217
Super wx Problem Solver
Super wx Problem Solver
Posts: 497
Joined: Mon Nov 06, 2006 9:58 pm

Post by FlyingIsFun1217 » Sun Feb 18, 2007 10:44 pm

Well, for splitting windows, you could go down the path using splitters, which would most likely be your best way of doing it. Or you could use panels and sizers (like I did in a program of mine).

Again, the splitter window would probably be the easiest, but if you are interested in using panels (so that your user cannot resize the splitter, etc.), check out my forum post.

FlyingIsFun1217

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Re: Four-split window

Post by Auria » Mon Feb 19, 2007 12:24 am

Inestical wrote:Hello,

I would like to achieve 'perfect' 4-split window, do I have to use three wxSplitterWindow's and update one when second is updated?

I'm asking; is there any 'easier' way to achieve this?

edit:
I've looked up some information (with no success) and it seems there isn't any other choice.. I haven't tried this yet, since I'm working on some other stuff.

Or is there?

Thanks in advance
if it'S going to be resizable by user, splitters are probably your best bet

FlyingIsFun1217
Super wx Problem Solver
Super wx Problem Solver
Posts: 497
Joined: Mon Nov 06, 2006 9:58 pm

Re: Four-split window

Post by FlyingIsFun1217 » Mon Feb 19, 2007 3:15 am

Auria wrote:if it'S going to be resizable by user, splitters are probably your best bet
No doubt. They will be the absolute EASIEST thing to use.

If you intended that you didn't want them resized (I assumed when you said 'perfect 4-split window'), then splitters might not be the easiest thing to work with, as there is no (known to me) way to stop resizing of a splitter. :(

Hope you understand a little better now. :)

FlyingIsFun1217

tan
Moderator
Moderator
Posts: 1471
Joined: Tue Nov 14, 2006 7:58 am
Location: Saint-Petersburg, Russia

Post by tan » Mon Feb 19, 2007 6:38 am

Hi,
what about wxAUI?
OS: Windows XP Pro
Compiler: MSVC++ 7.1
wxWidgets: 2.8.10

Inestical
In need of some credit
In need of some credit
Posts: 3
Joined: Sun Feb 18, 2007 6:14 pm
Location: System32

Post by Inestical » Mon Feb 19, 2007 8:13 pm

So, to put it short:

No, there is no easier method (such as wx4SplitterWindow) and you might like to consider sizers and wxAUI (advanced user interface).

I'll get on this as I get other stuff before this. Just curious. Anyways, I think I'll check out wxSizerPane and wxAUI as I get to set up edit windows.

Arigat
Randomness to the end 0.o

Infinity_77
Experienced Solver
Experienced Solver
Posts: 89
Joined: Tue Oct 03, 2006 6:30 pm
Location: London, UK
Contact:

Post by Infinity_77 » Mon Feb 26, 2007 11:29 am

So, to put it short:

No, there is no easier method (such as wx4SplitterWindow) and you might like to consider sizers and wxAUI (advanced user interface).

I'll get on this as I get other stuff before this. Just curious. Anyways, I think I'll check out wxSizerPane and wxAUI as I get to set up edit windows
There is an implementation of a 4-way splitter window I made. Obviously, it's for wxPython, but I believe you could easily translate it to wxWidgets:

http://xoomer.alice.it/infinity77/eng/f ... aysplitter

wxPython rules :-D

Andrea.
"Imagination Is The Only Weapon In The War Against Reality."

http://xoomer.alice.it/infinity77/

Post Reply