I need to be able to get and set the top item in a listbox - something like a ListBox.TopItem property would be great. I have been unable to find anything that does this job. Any ideas would be greatly appreciated please.
Edit:
For example: Listbox1 and ListBox2 items are the following:
1 Data1
2 Data2
3 More Data
4 More again
5 Yet more
6 and this will do.
Showing in 2 listboxes, both 3 items high:
1 Data1
2 Data2
3 More Data
and I want to programmatically make them show
3 More Data
4 More again
5 Yet more
and I want to find out what item the top one is.
FMX.ListBox.TListBox.Items
? Use Items to get or set the list of items in the list as strings. Or as the docs continue if you want to access an item as TListBoxItem: Use the ListItems property to access an item by specifying its index. This property returns the item as a TListBoxItem object. Index 0 refers to the topmost item. – Tom Brunberg