![]()  | 
 
The panel size issue? | 
 
    Post Reply  
   | 
  
| Author | |
   
   grade  
   
   Newbie  
   Joined: 07 December 2006 Location: Taiwan Status: Offline Points: 25  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: The panel size issue?Posted: 17 October 2007 at 6:01pm  | 
 
| 
   
    
   Hello Sir, 
 
   
                 I have a probelm for Pane size  for you . I creating some panes for my program, that i want to restore default size  for all panes. But the result is not correct. You can See SkinPane02.jpg and SkinPane03.jpg for 
my attach RAR file(SkinpaneSize.rar).  
First time,I used to CreatePane(.., CRect(0,0,170,120), xtpPaneDockLeft) for Pane on OnCreate Event for CChildFrame for the my program . 
Second time,  used to FloatPane(..,CRect(0,0,170,120)) for Pane to restore  default size for all pane for the my program . 
I do'nt want to use SetMinTrackSize() and SetMaxTrackSize() to bridle pane size for all panes. 
I attach my sample code for you.Do you have some suggestions for me? 
Thank you for you help! 
 | 
 |
| 
   
     
     Grade Wang
 
   
  Software Engineer  | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 18 October 2007 at 5:02am | 
 
| 
   
    
   Hi,
 
   
  If you need restore layout, you better call m_paneManager.DestroyAll() and recreate same layout you had in CMainFrame::OnCrate. 
    | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
   
   grade  
   
   Newbie  
   Joined: 07 December 2006 Location: Taiwan Status: Offline Points: 25  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 19 October 2007 at 12:07am | 
 
| 
   
    
   Hello Sir,
 
   
                    If i call m_paneManager.DestroyAll() , That all subobjects(m_ViewPane01, m_ViewPane02,m_ViewPane03,m_ViewPane04) to  Destroy for my sampe code. The result is not good.  If I want to destory all panes, but keep All subobjects. How to do?Do you have suggestions for me? 
Thank you for you help! 
 | 
 |
| 
   
     
     Grade Wang
 
   
  Software Engineer  | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 19 October 2007 at 12:49am | 
 
| 
   
    Hello, Try to call m_paneManager.ClosePane(pPane) for each pane before destroy. 
    | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
   
   grade  
   
   Newbie  
   Joined: 07 December 2006 Location: Taiwan Status: Offline Points: 25  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 19 October 2007 at 2:25am | 
 
| 
   
    
   Hello Sir, 
 
   
                 This solution is work fine! Thank you for you help! 
    | 
 |
| 
   
     
     Grade Wang
 
   
  Software Engineer  | 
 |
![]()  | 
 |
    Post Reply  
   | 
  |
|       
  
  Tweet   	
    | 
 
| Forum Jump | Forum Permissions  ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum  |