how to get the max value of ScrollViewPos for listview?
thank you soo much .... i'm talking about FMX ListView ... not VCL .....
i know ...i have to calculate it ... but how...
so i found the answer...
i scroll the listview to the last item and the save the scrollviewpos.... in public variable ...
ScrollViewPos only gives you the current position of the scroll bars, so there is no "max value" for that - the maximum possible value will be based on the number of items you have in the list, and the format (ViewStyle) of the list view (icon, list, report, smallicons) and how many of the items can fit on the display surface.
You may be able to calculate that information based on the windows messages you can send to the list view:
List View Messages
I believe you can use these by calling the Windows API SendMessage method with appropriate parameters.