ImageEn, unit iexFolderMView

TImageEnFolderMView.ExecuteFile

TImageEnFolderMView.ExecuteFile


Declaration

function ExecuteFile(idx : Integer = IEF_CURRENT_FILE; Verb: TShellExecuteVerb = sevDefault);) : boolean;


Description

Executes the file at idx using the standard windows functionality.

Note: No check is made whether the file type is supported by ImageEn or not.

Result is true unless an error was encountered.

If you specify IEF_CURRENT_FILE for idx then currently selected folder will be opened.

Note: Has no effect for files on a device folder


Examples

// Typical double-click functionality...
case IEFolderMView1.ImageType[idx] of
  ieftFolder          : IEFolderMView1.OpenFolder(idx);
  ieftSupportedImage  : DisplayImage(idx);
  ieftFile            : IEFolderMView1.ExecuteFile(idx);
end;

// Open current file in the default application
IEFolderMView1.ExecuteFile( IEF_CURRENT_FILE );

// Display the properties dialog for the selected file
IEFolderMView1.ExecuteFile( IEF_CURRENT_FILE, sevProperties );

// Open the selected file in the default editor
IEFolderMView1.ExecuteFile( IEF_CURRENT_FILE, sevEdit );

// Print the selected file
IEFolderMView1.ExecuteFile( IEF_CURRENT_FILE, sevPrint );