Hi
I am working on a desktop application. I am using UltraToolsBarManager for menus. There is a functionality available that i can add any menu to Quick Access Menu. The problem is Quick Access Menu disappears the next time I open application after closing it. I want to mantain the QuickAccessMenu.
Can anybody help me out?
Thnx in advance.
Azif
You can save the toolbars manager settings when the form closes using the SaveAsXml or SaveAsBinary methods. Then when the form opens, you can load the settings file using LoadFromXml or LoadFromBinary. This will repopulate the QAT as the user had it setup the last time the form was open. If you only want to load settings for the QAT and not other toolbars, menus, and tools in the toolbars manager, you will need to manually save and load the contents of the QAT.
Hi Melville
First of all thank you so much.
Actually I have found a more simple way and I would like to share it with you. In the properties of UltraToolBarsManager there is one SaveSettings, set it to true and the menus added to QuickAccessToolBar are saved for the next time user runs application. If there can be any drawback this way please nitify me.
Thnx once again
The approach you have listed is equivalent (but yes, easier) to using the SaveAs... and LoadFrom... methods as they are called internally when SaveSettings is True. The only drawbacks I can think of is 1) you do not have control of the location of the settings file and 2) when the version of your application changes, I believe a new settings file location will be used, so the settings from the last run of the application will not be used and the UI will reset (I'm not sure about this last one though, you may want to check it out).