ImageEn, unit iemview

TImageEnMView.Seek

TImageEnMView.Seek


Declaration

function Seek(Page : TIEIOSeekDestination) : integer;


Description

When DisplayMode is mdSingle then seek sets VisibleFrame to display the first/previous/next/last image.
Otherwise it sets SelectedImage to move the selection to the first/previous/next/last image.
Returns the new page index.

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.


Demo

  Demos\Multi\MViewPreview\MViewPreview.dpr


Example

// Display a single image
ImageEnMView1.DisplayMode := mdSingle;
..
// Advance to the next image
ImageEnMView1.Seek(ieioSeekNext);