ImageEn, unit iemview

TImageEnMView.SelectSeek

TImageEnMView.SelectSeek


Declaration

function SelectSeek(pos: TIESeek): Boolean; overload;
function SelectSeek(const C: Char): Boolean; overload;


Description

Moves the selection by the method specified by pos. SelectSeek will scroll the view, where necessary, to ensure the newly selected image is visible.
The second overloads allow you to navigate to a file by specifying the first letter of its name.

Note:
 SelectSeek and Seek are similar and can often achieve the same task. SelectSeek is used to handle movement within the control and select frames appropriate. Seek is used just to display a specific frame.
 SelectSeek cannot be used if DisplayMode is mdSingle
 The OnSelectionChanging event will occur when using SelectSeek


Examples

// This code loads "film.avi" and selects the first image
ImageEnMView1.MIO.LoadFromFile('film.avi');
ImageEnMView1.SelectSeek(iskFirst);

// Select the first filename starting with "F"
ImageEnMView1.SelectSeek('F');