Print Page | Close Window

Command Bar Customization

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=676
Printed Date: 16 May 2024 at 7:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Command Bar Customization
Posted By: davidbut
Subject: Command Bar Customization
Date Posted: 29 April 2004 at 8:54am

I want to enable customization for button bars but not for the main menu bar. I add customization as described in the documentation, and call EnableCustomization(FALSE) for the menu bar. This correctly stops the menu bar from being customized. However, the LoadCommandBars / SaveCommandBars routines still load and save data for the menu bar. This causes me many problems eg if I add a menu item to my menu bar (before converting from a CMenu), the new command does not appear. I also change the text at run-time (to allow for different languages) and the new text does not appear. I know I can get around it by deleting the file written by SaveCommandBars, but that loses the button bar customization - I do not want our users to lose their button bar customization whenever we add a new command or when they change the language.

Can LoadCommandBars / SaveCommandBars be made to stop doing this, either by myself or you?

I am using XTreme Suite 8.61

Regards

David

 




Replies:
Posted By: Oleg
Date Posted: 29 April 2004 at 10:00am
8.70 stored/restored only customized Toolbars.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: davidbut
Date Posted: 03 May 2004 at 6:27am

Thanks Oleg, I have downloaded 8.70 but it does not fix my problem. I disable customization for the menu bar, but I make changes to it in my code, for example changing the language of the menu items. GenerateCommandBarList sees that the menu bar has changed so saves it anyway. This is not what I want. Is there a way around this?

David



Posted By: davidbut
Date Posted: 06 May 2004 at 5:18am

OK, do I have do fix this myself??? I assume I can edit the source code and recompile the library, but then I have to remember to do this every time I get an update. What possible reason is there for writing a complete menu bar to a file when customization is disabled?

David

 



Posted By: Oleg
Date Posted: 11 May 2004 at 2:27pm

add

if (!pBar->IsCustomizable()) continue;

to the

CXTPCommandBars::GenerateCommandBarList.

 

we will add it too.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net