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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TImageEnMView.EnableMultiSelect & TIEDBMultiBitmap

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
xequte Posted - Aug 20 2020 : 17:10:46
 
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