Skip to main content

TdxBarManager.StoreInIniFile Property

Specifies whether the current bar manager’s settings should be stored in an INI file.

Declaration

property StoreInIniFile: 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 INI file specified by the INIFileName property, if the StoreInIniFile 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 an INI file.

Use this property to preserve bar layout between application runs.

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

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

See Also