News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Overlapping panels

Started by qawsed, January 03, 2020, 07:07:17 PM

Previous topic - Next topic

qawsed

Hello,

Please help. I'm new with C::B and wxWidgets. I try to create a window which has multiple alternative views in the same frame. Tried it with fully overlapping panels where only one is visible and others are hidden.

How to build it in GUI designer? Tested it with panels directly on wxFrame. Other test was wxBoxSizer on wxFrame and panels inside the wxBoxSizer. They both were quite difficult to handle.

Thanx!

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

oBFusCATed

Not sure what would be best but there are some options:
1. Create multiple panels in wxSmith and then create/add them manually with code to your frame.
2. Create the all components of the UI in a sizer and then use code to show/hide/reparent/re-add-to-sizer.

Dynamic UI generators aren't really designed with such dynamic views in mind, at least wxSmith isn't.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]