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
 Displaying ImageMView.MultiSelectedImagesCount?

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
skippix Posted - Nov 19 2020 : 08:39:00
I'm probably overlooking something simple, but what events are best for updating a TLabel with an TImageMView's MultiSelectedImagesCount?

I need to do it when the user clicks on a thumbnail or navigates with the keyboard.

I'm trying OnImageSelect, but I'm not getting the correct number.


Thanks!
4   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Dec 13 2020 : 20:42:17
Thanks Skip

Nigel
Xequte Software
www.imageen.com
skippix Posted - Dec 12 2020 : 11:27:53
Thanks!

After poking around some more, I had a EUREKA! moment and discovered

OnAfterEvent

Not that I completely understand the entire TImageEnMView event cycle, but that seems to allow me to update my lblImageGridStatus without any noticeable overhead.

Just to share, here's the code I call:

procedure TfrmAssetCurator.ImgGridStatus;
var imgMV: TImageEnMView;
  s: String;
begin
  if (iNavGrid = 0) then
    imgMV := ImgMView
  else
    imgMV := ImgMViewTarget;

  s := IntToStr(imgMV.ImageCount) + ' files';

  if (imgMV.MultiSelectedImagesCount > 0) then
    s := s + ', ' + IntToStr(imgMV.MultiSelectedImagesCount) + ' selected';

  if (imgMV.CheckedCount > 0) then
    s := s + ', ' + IntToStr(imgMV.CheckedCount) + ' checked';

  Talk (lblImageGridStatus, s);
end;

Cheers,
Skip
xequte Posted - Dec 04 2020 : 23:10:55
Also, we have added TImageEnMView.OnSelectionChanged in the upcoming version.

Nigel
Xequte Software
www.imageen.com
yogiyang Posted - Dec 03 2020 : 06:54:38
Hello,

Try to put your code in OnMouseUp event.

HTH


Yogi Yang