Too Many Panes  
       
      Printed From: Codejock Forums
        Category:  Codejock Products
       Forum Name:  Docking Pane
       Forum Description:  Topics Related to Codejock Docking Pane
       URL: http://forum.codejock.com/forum_posts.asp?TID=4745
       Printed Date: 04 November 2025 at 4:30am Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
      
 
  
      Topic: Too Many Panes
       
      Posted By: Simon HB9DRV
       Subject: Too Many Panes
       Date Posted: 06 August 2006 at 6:38am
       
      
        
          
	
Hi,
  If I have too many panes docked to the bottom of my MDI application then there isn't enough room to draw all the text and I just lose text and / or panes.
  Is there an intelligent solution built into the pane manager when takes care of this situation? 
  ------------- Simon HB9DRV
          | 
         
        
      
 
  Replies: 
       
      Posted By: Simon HB9DRV
       
      Date Posted: 06 August 2006 at 6:53am
       
      
        
          
	
I see what I'm after in the PaneActions sample - but can't work out how it is enabled :-(
  ------------- Simon HB9DRV
          | 
         
        
        
       
      
      Posted By: Simon HB9DRV
       
      Date Posted: 11 August 2006 at 7:18am
       
      
        
          
	
Bump - help please ?
  ------------- Simon HB9DRV
          | 
         
        
        
       
      
      Posted By: Oleg
       
      Date Posted: 14 August 2006 at 9:16am
       
      
        
          | 
	
 Hi, 
You can change layout from xtpTabLayoutSizeToFit to xtpTabLayoutAutoSize. it will add scroll buttons.  
  
See TabManager sample. 
  ------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
          | 
         
        
        
       
      
      Posted By: Simon HB9DRV
       
      Date Posted: 14 August 2006 at 9:34am
       
      
        
          
	
  oleg wrote:
 
 Hi, 
You can change layout from xtpTabLayoutSizeToFit to xtpTabLayoutAutoSize. it will add scroll buttons.  
  
See TabManager sample.  |  
  Hah - so simple, many thanks!
 
  ------------- Simon HB9DRV
          | 
         
        
        
       
      
      Posted By: Simon HB9DRV
       
      Date Posted: 16 August 2006 at 8:51am
       
      
        
          
	
  Simon HB9DRV wrote:
  
  oleg wrote:
 
 Hi, 
You can change layout from xtpTabLayoutSizeToFit to xtpTabLayoutAutoSize. it will add scroll buttons.  
  
See TabManager sample.  |  
  Hah - so simple, many thanks!
  |  
  Hi - having a brain problem here. Exactly how should I set this? I have tried
  m_paneManager.GetPaintManager()->GetTabPaintManager()->SetLayout(xtpTabLayoutAutoSize);
  without success. Must I call something afterwards?
 
 
  ------------- Simon HB9DRV
          | 
         
        
        
       
      
      Posted By: Simon HB9DRV
       
      Date Posted: 16 August 2006 at 9:48am
       
      
        
          
	
False alarm - I see it's in the Tab Manager sample - will look further after I take the dog for a walk.
  ------------- Simon HB9DRV
          | 
         
        
        
       
      
      Posted By: Oleg
       
      Date Posted: 16 August 2006 at 11:38am
       
      
        
          | 
	
 Hi, 
  
Yes, m_paneManager.GetPaintManager()->GetTabPaintManager()->SetLayout(xtpTabLayoutAutoSize); must work... Just be sure you call it after you set theme for dockingpanes.
  
  ------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
          | 
         
        
        
       
      
      Posted By: Simon HB9DRV
       
      Date Posted: 16 August 2006 at 11:53am
       
      
        
          
	
  oleg wrote:
 
 Hi, 
  
Yes, m_paneManager.GetPaintManager()->GetTabPaintManager()->SetLayout(xtpTabLayoutAutoSize); must work... Just be sure you call it after you set theme for dockingpanes.
   |  
  Somehow the layout is being ignored :-(
 
  ------------- Simon HB9DRV
          | 
         
        
        
       
      
      Posted By: Simon HB9DRV
       
      Date Posted: 16 August 2006 at 1:18pm
       
      
        
          
	
OK - I see why it works in the TabManager example, this is because you have just one group - you specify the neighbour when creating the panes, I don't.
  So - how do I dynamically add my panes into the single group? I have maybe 12 different panes, created on demand, not st startup.
  For the CreatePane function I need to specify a neighbour, currently I enter NULL.
  Does this make sense? I have modified the TabManager example so that this doesn't work - simply by not supplying the neighbour argument and not using AttachPane().
  How do I find the value to use as the neighbour?
  ---
  Or - here's what I really want - I have all my panes which the user can hide as required.
  Try modifying the TabManager code:
      CXTPDockingPane* pwndPane1 = m_paneManager.CreatePane(         IDR_PANE1, CRect(0, 0,200, 120), xtpPaneDockLeft);     CXTPDockingPane* pwndPane2 = m_paneManager.CreatePane(         IDR_PANE2, CRect(0, 0,200, 120), xtpPaneDockLeft);     CXTPDockingPane* pwndPane3 = m_paneManager.CreatePane(         IDR_PANE3, CRect(0, 0,200, 120), xtpPaneDockLeft); //    m_paneManager.AttachPane(pwndPane2, pwndPane1); //    m_paneManager.AttachPane(pwndPane3, pwndPane1);
  Hide these - then try getting the tabs Compressed - or getting any layout style applied :-(
 
 
 
  ------------- Simon HB9DRV
          | 
         
        
        
       
      
      Posted By: Oleg
       
      Date Posted: 16 August 2006 at 2:16pm
       
      
        
          | 
	
 Hi, 
So you mean tabs in AutoHide panel not in Tabbed Containers? 
  
Unfortunatelly in this case there is no method :( 
  ------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
          | 
         
        
        
       
      
      Posted By: Simon HB9DRV
       
      Date Posted: 16 August 2006 at 3:03pm
       
      
        
          
	
  oleg wrote:
 
 Hi, 
So you mean tabs in AutoHide panel not in Tabbed Containers? 
  
Unfortunatelly in this case there is no method :(  |  
  OK - guess I found something that's missing :-)
 
  ------------- Simon HB9DRV
          | 
         
        
        
       
      
      Posted By: Dmitry
       
      Date Posted: 02 July 2008 at 1:45am
       
      
        
          
	
Hi,
 
 Has there been any news on this subject?
 
 We would also like to have tabs in AutoHide panel scrollable.
 
 Regards,
 Dmitry
          | 
         
        
        
       
      
     |