Customized menu captions are not saved |
Post Reply |
Author | |
chrisc0
Newbie Joined: 15 April 2009 Status: Offline Points: 5 |
Post Options
Thanks(0)
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?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Have to work. Check our samples.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
chrisc0
Newbie Joined: 15 April 2009 Status: Offline Points: 5 |
Post Options
Thanks(0)
|
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.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Why you change Actions captions manually in runtime ? Let user change them in customization dialog.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
chrisc0
Newbie Joined: 15 April 2009 Status: Offline Points: 5 |
Post Options
Thanks(0)
|
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.
|
|
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 |