![]() |
Switching between standard and tabbed toolbars |
Post Reply ![]() |
Author | |
mitcheljh ![]() Groupie ![]() Joined: 20 July 2008 Location: United States Status: Offline Points: 35 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
Smucker ![]() Senior Member ![]() ![]() Joined: 02 February 2008 Status: Offline Points: 156 |
![]() ![]() ![]() ![]() ![]() |
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) |
|
![]() |
|
mitcheljh ![]() Groupie ![]() Joined: 20 July 2008 Location: United States Status: Offline Points: 35 |
![]() ![]() ![]() ![]() ![]() |
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! ![]() |
|
![]() |
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 |