| ImageEn, unit iexFolderMView |
|
TImageEnFolderMView.ExecuteFile
Declaration
function ExecuteFile(Index: Integer = IEF_CURRENT_FILE; Verb: TShellExecuteVerb = sevDefault): Boolean;
Description
Executes the file at Index 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
Index 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[Index] of
ieftFolder : IEFolderMView1.OpenFolder(Index);
ieftSupportedImage : DisplayImage(Index);
ieftFile : IEFolderMView1.ExecuteFile(Index);
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 );