TImageEnMView.SelectedFilename
Declaration
property SelectedFilename: WideString;
Description
Returns the full path of the currently selected frame (using
SelectedImage) or '' if nothing is selected.
You can set SelectedFilename to make it the selected filename. If the filename is not found, the first item will be selected.
Note:
◼If you have use IEM_Path_Index_Delimiter (::) for the
filename it will be included in the returned filename
◼If
DisplayMode is mdSingle, the filename of the
visible frame will be returned
// Show preview of image in ImageEnView when a file is selected
procedure TForm1.ImageEnMView1ImageSelect(Sender: TObject);
begin
if ImageEnMView1.SelectedFilename = '' then
ImageEnView1.Blank
else
ImageEnView1.IO.LoadFromFile(ImageEnMView1.SelectedFilename);
end;
See Also
◼SelectedFilenames
◼SelectedImage