Skip to main content

TdxCustomNavBar.LoadFromIniFile(string,Boolean) Method

Loads the control’s layout from the specified INI file.

Declaration

procedure LoadFromIniFile(AFileName: string; LoadStyles: Boolean = True);

Parameters

Name Type
AFileName string
LoadStyles Boolean

Remarks

Use the LoadFromIniFile method to load settings from an INI file which was created using the SaveToIniFile method. The AFileName parameter specifies the INI file containing settings to load. The LoadStyles parameter specifies whether style settings must be loaded. This parameter is optional and defaults to True.

If the file specified by the AFileName parameter does not exist, an exception is raised. Also note that styles may not have been saved by the SaveToIniFile method call. In this case, the LoadStyles parameter value is ignored.

If storing settings within an INI file doesn’t suit your needs, refer to the SaveToRegistry and SaveToStream methods.

See Also