I am creating an app which uses a single frame - the main frame of my app. I also have multiple wxPanels which hold different types of stuff:). I want to be able to switch between the panels, and have them display in the main frame. I can show and hide the panels using show() and hide() :) and this displays them, but the window doesn't resize itself to the new panel.
using Fit() doesnt seem to work either.
So... in summary, my question is:
how do I change from one panel to another, and have the window resize itself to the currently visible panel?
thanks
2. Re: switching wxPanels
#4356
Posted by: 2004-06-06 19:59:10
Hi!
I think, in your case, you should use one or more wxSizer(s). Better, use their derived class like wxBoxSizer. They have a Show(bool bShow) method.