I am look for a several functions for a TLISTVIEW. These functions must work correctly for all viewstyles (vsIcon, vsList, vsReport, vsSmallIcon)
1) //Gets the top item of the listview.
Function GetTopItem:TListItem
2) //Get the bottom most drawn item of listview. Please
note if item is partially draw you must count it.
Function GetBottomMostItem: TListItem
3) //Get a list of item index's of ALL visible draw items.
So whatever you currently see in your listview screen, I want a list of these index's.
Function GetAllVisibleItems: array of Integer
4) When the SmallImages property width & height is changed
the TLIstItems automatically resize. This is fine but the SCROLLBAR is not adjusted to these changes and therefore won't allow scrolling to all images if your resize on the fly..
So basically I need a method to reinitialze the scrollbar when items are resized. So we can scroll to all items.
Just a though for 4). When using vsIcon and calling CUSTOMSORT when chaning SmallImage sizes will actually trigger something to adjust the SCROLLBARS according...
Basically what I'm saying is there is some call that is done to tell it to recalc the scrollbar. It works for vsIcon, bu tnot for vsReport. This could be help to determine how to get 4) working for all viewstyles...
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
Delphi 2006
TListView