When a user customizes the Quick Access Toolbar the settings do not get saved to the Windows Registry or to a disk file. What are the recommendations or best practices for saving the settings/selections for a user?
Rick Schummer
Quick Access Toolbar
Re: Quick Access Toolbar
Hi Rick,
You can use RestoreStateFromXml method of the CBM object to restore commandbars/ribbon state. And SaveStateToXmlFile method to save the current state (customizations). Please see frmRibbon sample form that comes with the library.
Or, as an alternative, you can use CustomUI features of the library. The RibbonXml property (or GetXml method) of the Ribbon returns the current XML represantion of the Ribbon. LoadCustomUI method of the Ribbon loads custom UI, or the Ribbon state.
BTW, you can get QAT-only XML representation:
save result, and at the next startup load it from file (or other way you prefer) and pass to the LoadCustomUI method of the Ribbon.
You can use RestoreStateFromXml method of the CBM object to restore commandbars/ribbon state. And SaveStateToXmlFile method to save the current state (customizations). Please see frmRibbon sample form that comes with the library.
Or, as an alternative, you can use CustomUI features of the library. The RibbonXml property (or GetXml method) of the Ribbon returns the current XML represantion of the Ribbon. LoadCustomUI method of the Ribbon loads custom UI, or the Ribbon state.
BTW, you can get QAT-only XML representation:
Code: Select all
lcQatXml = "<customUI><ribbon>" + ThisForm.Ribbon.QuickAccessToolbar.GetXml() + "</ribbon></customUI>"
With best regards,
Alex Grigorjev
(ARG-Software Design Lab.)
Alex Grigorjev
(ARG-Software Design Lab.)
Re: Quick Access Toolbar
Thanks Alex, this looks pretty straight-forward. I really appreciate the response.
Rick Schummer
Rick Schummer