ImageEn, unit iexRegistryFunctions

TIEAcquireParams.SaveProperties

TIEAcquireParams.SaveProperties


Declaration

function SaveProperties(const sKey : string; aHKEY: HKEY = HKEY_CURRENT_USER): boolean; overload;
function SaveProperties(const sFilename : string; sSection : string): boolean; overload;


Description

Save all properties for TIEAcquireParams to the registry or an INI file.

Notes:
- SaveProperties should be used in tandem with LoadProperties
- SaveProperties is a helper method. You will need to add iexRegistryFunctions to your uses clause to access the method


Example

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;