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
 ImageEnMView: idx of first/last visible image
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

am24

30 Posts

Posted - May 13 2014 :  11:48:30  Show Profile  Reply
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

xequte

38514 Posts

Posted - May 13 2014 :  17:19:00  Show Profile  Reply
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
Go to Top of Page

am24

30 Posts

Posted - May 14 2014 :  23:49:25  Show Profile  Reply
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.
Go to Top of Page

xequte

38514 Posts

Posted - May 19 2014 :  13:39:09  Show Profile  Reply
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
Go to Top of Page

am24

30 Posts

Posted - May 20 2014 :  12:04:36  Show Profile  Reply
Thank you very much, works perfectly now!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: