Author Topic: Overlapping panels  (Read 222 times)

Offline qawsed

  • Single posting newcomer
  • *
  • Posts: 1
Overlapping panels
« 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!

Online stahta01

  • Lives here!
  • ****
  • Posts: 6749
    • My Best Post
Re: Overlapping panels
« Reply #1 on: January 03, 2020, 07:22:32 pm »
No idea if this link will help you.
http://wiki.codeblocks.org/index.php/WxSmith_tutorials

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12218
    • Travis build status
Re: Overlapping panels
« Reply #2 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.
(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!]