ImageEn, unit iexDBBitmaps

TIEDBMultiBitmap.SetActiveImage

TIEDBMultiBitmap.SetActiveImage


Declaration

procedure SetActiveImage(idx: integer);


Description

Positions the database at the record of the specified index (in the TIEDBMultiBitmap).
This can be used to access the database record of the image without moving the position when attached to a TImageEnMView.


Example

// Read a database field for all selected images in a TImageEnMView and add to a TMemo
var
  i, selIndex: Integer;
begin
  memo1.Clear;
  for i := 0 to ImageEnMView1.MultiSelectedImagesCount - 1 do
  begin
    selIndex := ImageEnMView1.MultiSelectedImages[ i ];
    ImageEnMView1.IEMBitmap.SetActiveImage( selIndex );
    memo1.Lines.Add( qryImages.FieldByName( 'Image_ID' ).AsString );
  end;
end;