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 issue

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
PeterPanino Posted - Nov 11 2022 : 05:30:46
When clicking a Thumbnail, then the Thumbnail gets selected. So far, so good.

However, when clicking on the white space OUTSIDE a Thumbnail, then always the thumbnail NEXT to the mouse pointer gets selected:



This behavior is undesirable, as I need to DESELECT all thumbnails when I click on a white space:

procedure TformMain.ImageEnMView1MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
  if Button = mbLeft then
  begin
    var ThisImageIdx := ImageEnMView1.ImageAtPos(X, Y);
    if ThisImageIdx = -1 then 
    begin
      ImageEnMView1.Deselect;
    end;
  end;
end;


So how can I avoid selecting a near thumbnail when clicking on the white space?
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 13 2022 : 20:18:57
Hi Peter

Please enable CheckThumbBoundsOnSelect:

http://www.imageen.com/help/TImageEnMView.CheckThumbBoundsOnSelect.html


Also, ImageAtPos has a CheckBounds parameter:

https://www.imageen.com/help/TImageEnMView.ImageAtPos.html

Nigel
Xequte Software
www.imageen.com