Harry Hunt
07-12-2003, 03:12 PM
Hi there!
I'm using TActionManager for the first time and I'm quite happy with it but I'm having some problems with its ability to save toolbar settings to a file. I have a TActionMainMenu on my form which has a bunch of menu items on it that are managed through a TActionManager component. However, I need to create some of the menu items manually at run-time (I have a recent files list in the menu). This works fine, but the TActionManager saves the manually created items into its file (which it shouldn't do) and that creates "phantom menu items" in addition to my dynamically created items. These phantom items don't have a caption so it looks really weird.
Is there a nice and clean way of telling TActionManager not to save an element or do I have to delete the dynamic elements before I tell TActionManager to save its file?
I'm using TActionManager for the first time and I'm quite happy with it but I'm having some problems with its ability to save toolbar settings to a file. I have a TActionMainMenu on my form which has a bunch of menu items on it that are managed through a TActionManager component. However, I need to create some of the menu items manually at run-time (I have a recent files list in the menu). This works fine, but the TActionManager saves the manually created items into its file (which it shouldn't do) and that creates "phantom menu items" in addition to my dynamically created items. These phantom items don't have a caption so it looks really weird.
Is there a nice and clean way of telling TActionManager not to save an element or do I have to delete the dynamic elements before I tell TActionManager to save its file?