ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TImageEnMView.EnableMultiSelect & TIEDBMultiBitmap
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

xequte

38615 Posts

Posted - Aug 20 2020 :  17:10:46  Show Profile  Reply
 
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: