Print Page | Close Window

Customized menu captions are not saved

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=14094
Printed Date: 16 June 2025 at 3:37pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Customized menu captions are not saved
Posted By: chrisc0
Subject: Customized menu captions are not saved
Date Posted: 21 April 2009 at 10:51pm
In customization mode, a user can right-click on a menu item and then edit the text that appears on the menu. This change does not appear to be saved by the CommandBars.SaveCommandBars method. Is there a flag that needs to be set somewhere that will cause these changes to be saved?
 
The SaveStateToXMLString (with save ony customized changes) does include the menu caption changes, but when the changes are loaded by LoadStateFromXMLString, they are no longer considered to be customizations and calling SaveStateToXMLString again (saving only customized changes) does not include these old custmizations and so they are lost. Is there a way around this?



Replies:
Posted By: Oleg
Date Posted: 22 April 2009 at 1:00am
Hi,
 
Have to work. Check our samples.


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


Posted By: chrisc0
Date Posted: 22 April 2009 at 11:37pm
The problem was that if you are using actions, and you modify an action's properties (e.g. caption), this does not get recognized as a customization and is not saved. You also have to modify a corresponding control too.
 
Then when the customizations are loaded with LoadCommandBars, the corresponding action properties are not updated with the new values. I had to add them manually.


Posted By: Oleg
Date Posted: 23 April 2009 at 2:49am
Hi,
 
Why you change Actions captions manually in runtime ? Let user change them in customization dialog.


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


Posted By: chrisc0
Date Posted: 24 April 2009 at 10:00am
In my software, the user is able to add a command to the menu and define the behavior of that command. The name of the command and its behavior are defined on a form. Prior to this point, there is nothing to customize.



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