Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Customized menu captions are not saved
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Customized menu captions are not saved

 Post Reply Post Reply
Author
Message Reverse Sort Order
chrisc0 View Drop Down
Newbie
Newbie


Joined: 15 April 2009
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisc0 Quote  Post ReplyReply Direct Link To This Post Topic: Customized menu captions are not saved
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
chrisc0 View Drop Down
Newbie
Newbie


Joined: 15 April 2009
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisc0 Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 22 April 2009 at 1:00am
Hi,
 
Have to work. Check our samples.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
chrisc0 View Drop Down
Newbie
Newbie


Joined: 15 April 2009
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisc0 Quote  Post ReplyReply Direct Link To This Post 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?
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.125 seconds.