Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxBarManager.StoreInRegistry Property

Specifies whether the current bar manager’s settings are stored in the registry.

#Declaration

Delphi
property StoreInRegistry: Boolean read; write; default False;

#Property Value

Type Default
Boolean False

#Remarks

When a bar manager is destroyed or created, its settings can be saved to or restored from the registry path specified by the RegistryPath property, if the StoreInRegistry property is set to True. Refer to the description of the SaveToIniFile method for details on which bar manager’s settings are saved to/restored from the registry.

Use this property to preserve bar layout between application runs.

If you don’t want to store the bar manager’s settings in the registry, you can store them in an INI file. To do so, set the StoreInIniFile property to True and specify the desired file name using the IniFileName property.

If you need to save and restore a bar manager’s settings at different points in a program, you can do so by manually calling the SaveToRegistry, LoadFromRegistry, SaveToIniFile and LoadFromIniFile, SaveToStream and LoadFromStream methods. For instance in MDI applications you can call the SaveToRegistry method from the OnClose event handler of the child form to save the settings of its bar manager.

See Also