ImageEn, unit iexRegistryFunctions |
|
TImageEnMViewHelper.LoadProperties
Declaration
function LoadProperties(const sKey: string; aHKEY: HKEY = HKEY_CURRENT_USER): Boolean; overload;
function LoadProperties(const sFilename: string; sSection: string): Boolean; overload;
Description
Load key properties for
TImageEnMView from the registry or an INI file.
For TImageEnMView the following properties are loaded:
Component | Properties |
TImageEnMView | EnableAdjustOrientation, HorizBorder, VertBorder, ThumbWidth, ThumbHeight, PlayLoop, BackgroundStyle, Background, BackgroundColor2, GradientDir, GradientEndColor, ThumbnailResampleFilter |
TImageEnMIO | AutoAdjustDPI, SelectedAcquireSource, DialogMeasureUnit, MsgLanguage and all print preview dialog properties |
TIEAcquireParams | All |
For TImageEnFolderMView the following properties are loaded:
Component | Properties |
TImageEnFolderMView | ExclusionMask, FileTypes, FileTypesMask, Folder, ShowFolders, ShowHiddenFiles, SortOptions, SortOrder, ShowThumbnailHint, DefaultBottomText, DefaultInfoText, DefaultTopText |
TImageEnMView | EnableAdjustOrientation, HorizBorder, VertBorder, ThumbWidth, ThumbHeight, PlayLoop, BackgroundStyle, Background, BackgroundColor2, GradientDir, GradientEndColor, ThumbnailResampleFilter |
TImageEnMIO | AutoAdjustDPI, SelectedAcquireSource, DialogMeasureUnit, MsgLanguage and all print preview dialog properties |
TIEAcquireParams | All |
Note:
◼LoadProperties should be used in tandem with
SaveProperties◼LoadProperties is a helper method. You will need to add iexRegistryFunctions to your uses clause to access the method
uses
iexRegistryFunctions;
...
procedure TMainForm.FormCreate(Sender: TObject);
begin
// Load settings of our ImageEnMView from the registry
ImageEnMView1.LoadProperties('Software\MyCompany\MySoftware');
end;
procedure TMainForm.FormClose(Sender: TObject; var Action: TCloseAction);
begin
// Save settings of our ImageEnMView to the registry
ImageEnMView1.SaveProperties('Software\MyCompany\MySoftware');
end;