Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / switching wxPanels

Register 
新用户注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. switching wxPanels
#4353
Posted by: 2004-06-06 15:56:23
Hi

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
Message2. 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.

With the hope that it helped,
vovor
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2021-4-14  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0