| Switching between standard and tabbed toolbars
 
 Printed From: Codejock Forums
 Category:  Codejock Products
 Forum Name:  Command Bars
 Forum Description:  Topics Related to Codejock Command Bars
 URL: http://forum.codejock.com/forum_posts.asp?TID=16189
 Printed Date: 31 October 2025 at 3:30pm
 Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
 
 
 Topic: Switching between standard and tabbed toolbars
 Posted By: mitcheljh
 Subject: Switching between standard and tabbed toolbars
 Date Posted: 14 February 2010 at 7:07am
 
 
        
          | Hello, 
 I'm considering giving users the option to select between having regular toolbars, and having tabbed toolbars.  The reason why I'd like to give them the option is because some of my interface panes have over 6 toolbars, and I'd like them to have the option to reduce the toolbar clutter at the expense of an extra click action.
 
 The option to change from one to the other will be in the user options.  I'm planning on resetting the toolbars state, then doing a SaveCommandBars() when the user switches from standard to tabbed or vice versa, to make sure the registry is updated properly for the new toolbars state.  Do you think before saving the command bars, I should delete the whole registry key for the command bars state, to make sure the reg key is cleared of all of the information specific to the tabbed/untabbed state of the toolbars?
 
 Thanks
 |  
 
 Replies:
 Posted By: Smucker
 Date Posted: 14 February 2010 at 8:24am
 
 
        
          | I don't have CJ source on this computer, but I'm pretty sure you can
save different layout names. IIRC, the default name is "NormalLayout". This would allow someone to switch back and forth without having to redo each time (they'd still have to customize each layout, but it wouldn't erase the other type's customizations). 
 
 -------------
 Product: Xtreme Toolkit Pro version 13.2 (Unicode, static build)
 
 Platform: Windows 200x/XP/Vista/Win7 (32/64 bit)
 
 Language: Visual C++ 9.0 (Studio 2008)
 
 
 |  
 Posted By: mitcheljh
 Date Posted: 14 February 2010 at 8:52am
 
 
        
          | Thanks Phillip, That's a great idea!   
 For each pane, I already have a virtual function getPaneName() which returns the name that's used in the registry to save command bar info.  Using you're idea, I'll just create another function, getPaneNameTabbed() which would be used for the registry key for the command bars tabbed state.
 
 Thanks again!
   |  
 
 |