Skip to main content

TdxDockingController.LoadLayoutFromIniFile(string,TCustomForm) Method

Loads the layout of dock controls from the specified file.

Declaration

procedure LoadLayoutFromIniFile(AFileName: string; AForm: TCustomForm = nil);

Parameters

Name Type
AFileName string
AForm TCustomForm

Remarks

Use the LoadLayoutFromIniFile method to restore the layout of dock controls from a file. The file is specified by its name and path via the AFileName parameter. If the specified file doesn’t exist or is in use by another process, an exception is raised. If the file doesn’t contain dock controls layout information, all dock panels become undocked. Please refer to the dock control’s UnDock method description for details on undocking controls.

The method’s AForm parameter is optional. If omitted or set to nil, this method restores the layout of all dock controls whose settings are stored within the specified file. To restore the layout of dock controls that belong to a particular form, pass the desired form as this parameter.

Note

files containing the dock control’s layout can be created using the SaveLayoutToIniFile method.

See Also