Declarationproperty OnPreviewFile: TIEFileDlgPreviewEvent;
Occurs whenever a file is selected and needs to be previewed.
You can change the method that is used to load images by handling this event.
Example// this is the default behavior
procedure TForm1.OnPreviewFile(Sender: TObject; Viewer: TObject; FileName: String; ParamsOnly: Boolean;
if ParamsOnly then
(Viewer as TImageEnView).IO.ParamsFromFile(FileName)
if Viewer is TImageEnView then
(Viewer as TImageEnView).IO.LoadFromFileAuto(FileName)
if Viewer is TImageEnMView then
(Viewer as TImageEnMView).LoadFromFileOnDemand(FileName);