Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: qawsed on January 03, 2020, 07:07:17 pm

Title: Overlapping panels
Post by: qawsed on January 03, 2020, 07:07:17 pm
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!
Title: Re: Overlapping panels
Post by: stahta01 on January 03, 2020, 07:22:32 pm
No idea if this link will help you.
http://wiki.codeblocks.org/index.php/WxSmith_tutorials (http://wiki.codeblocks.org/index.php/WxSmith_tutorials)

Tim S.
Title: Re: Overlapping panels
Post by: oBFusCATed on January 03, 2020, 07:41:42 pm
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.