Hi
I am trying to use TImageEnMView to display the images resulting from a query from a Firebird database. I haven't found a way to bind or get the primary key (database primary key field) of the selected images (EnableMultiSelect: = true) for processing.
Regards,
Alfonso
Hi
You can use SetActiveImage to position the database at a record, and then read directly from the database, e.g.
// Read a database field for all selected images in a TImageEnMView add 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;
Nigel
Xequte Software
www.imageen.com