Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Switching between standard and tabbed toolbars
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Switching between standard and tabbed toolbars

 Post Reply Post Reply
Author
Message
mitcheljh View Drop Down
Groupie
Groupie


Joined: 20 July 2008
Location: United States
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote mitcheljh Quote  Post ReplyReply Direct Link To This Post Topic: Switching between standard and tabbed toolbars
    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
Back to Top
Smucker View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 February 2008
Status: Offline
Points: 156
Post Options Post Options   Thanks (0) Thanks(0)   Quote Smucker Quote  Post ReplyReply Direct Link To This Post 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)

Back to Top
mitcheljh View Drop Down
Groupie
Groupie


Joined: 20 July 2008
Location: United States
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote mitcheljh Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.