Skip to main content

TdxPSPreviewWindow.LoadFromIniFile(TCustomIniFile,string) Method

Loads the Print Preview window’s settings from an INI file.

Declaration

procedure LoadFromIniFile(AIniFile: TCustomIniFile; const ASectionName: string); override;

Parameters

Name Type
AIniFile TCustomIniFile
ASectionName string

Remarks

This method overrides the second overloaded variant of the LoadFromIniFile method declared in the ancestor class to load the Print Preview window’s settings from a specified section of a certain INI file that is currently open. The AIniFile and ASectionName parameters specify the INI file and section, respectively.

By default, only the window’s position on screen, size, and the visibility of window elements are loaded. You can handle the OnLoadProperties event or override the LoadFromIniFile method in TdxPSPreviewWindow descendants to load any additional data. Once the Print Preview window’s attributes are loaded, the LoadFromIniFile method calls the InitContent method to initialize the Print Preview window with them.

See Also