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
 ImageEnMView: idx of first/last visible image

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
am24 Posted - May 13 2014 : 11:48:30
Hi,

How can I determine the index of the first and the last visible image in an ImageEnMView?

I assume the answer is simple, but I could not find a solution.

Thanks for any help,
Martin
4   L A T E S T    R E P L I E S    (Newest First)
am24 Posted - May 20 2014 : 12:04:36
Thank you very much, works perfectly now!
xequte Posted - May 19 2014 : 13:39:09
Sorry, Martin, that should have read ImageAtPos:

iFirstVizIm := IEFolderMView.ImageAtPos(0, 0, False);
iLastVizIm := IEFolderMView.ImageAtPos(ClientWidth, ClientHeight, False);


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

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
am24 Posted - May 14 2014 : 23:49:25
Thanks, but are you sure that this really works?

It always returns 0 when I use ImageAtGridPos(0,0) which is not the index of the first visible image when I scroll down.
xequte Posted - May 13 2014 : 17:19:00
Hi Martin

You can use ImageAtGridPos passing (0, 0) or (ClientWidth, ClientHeight):

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



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com