Hi,
I'm very new to wxWidget and I'm considering moving from Qt to wxWidget. I would like to know if the following is possible. For my next application I would need a splitter that splits a window into multiple parts (panes or widgets? I'm not quite familiar with the teminology yet). For instance a window splitted into 4 parts, each of which can be resized individually. But it must also be possible to hide one or more parts. When hiding one of the 4 it would result in a splitter with 3 parts until the fourth is turned back on.
Is this possible with wxWidget?
splitter with multiple panes which can be disabled
Re: splitter with multiple panes which can be disabled
Hello and welcome to the forum.
There is no class in wxWidgets that can do exactly what you want out of the box. But i think it can be achieved using wxSplitterWindow or wxSashWindow with some additional code.
https://docs.wxwidgets.org/trunk/classw ... indow.html
https://docs.wxwidgets.org/trunk/classw ... indow.html
Please try to build wxWidgets and the samples "sashtest" and "splitter" that come with it to get an idea of what they do.
BTW: When you talk about 4 windows, are they all next to each other or in 2 x 2 layout?
There is no class in wxWidgets that can do exactly what you want out of the box. But i think it can be achieved using wxSplitterWindow or wxSashWindow with some additional code.
https://docs.wxwidgets.org/trunk/classw ... indow.html
https://docs.wxwidgets.org/trunk/classw ... indow.html
Please try to build wxWidgets and the samples "sashtest" and "splitter" that come with it to get an idea of what they do.
BTW: When you talk about 4 windows, are they all next to each other or in 2 x 2 layout?
Use the source, Luke!
Re: splitter with multiple panes which can be disabled
Not sure if I understand you right. If you want the window to disapear from the splitter, you can either call Unsplit and hide the window. Another option could be to set the splitter sash to 0 or to max, depending on which window you want to hide, and then keep it there until you want to show it again.simmania wrote: ↑Sat Jan 22, 2022 1:13 am Hi,
I'm very new to wxWidget and I'm considering moving from Qt to wxWidget. I would like to know if the following is possible. For my next application I would need a splitter that splits a window into multiple parts (panes or widgets? I'm not quite familiar with the teminology yet). For instance a window splitted into 4 parts, each of which can be resized individually. But it must also be possible to hide one or more parts. When hiding one of the 4 it would result in a splitter with 3 parts until the fourth is turned back on.
Is this possible with wxWidget?