AlpVir Well-Known Member Licensed User Longtime User Jul 19, 2013 #1 In VB6 exists in the statment List1.TopIndex = 0 Click to expand... which moves the contents of the listbox all high. In B4A exists ListView1.SetSelection(0) Click to expand... but has not the same effect. What is the equivalent of TopIndex in B4A ? Thanks in advance
In VB6 exists in the statment List1.TopIndex = 0 Click to expand... which moves the contents of the listbox all high. In B4A exists ListView1.SetSelection(0) Click to expand... but has not the same effect. What is the equivalent of TopIndex in B4A ? Thanks in advance
Erel B4X founder Staff member Licensed User Longtime User Jul 21, 2013 #2 SetSelection will cause the item to be visible. There isn't an equivalent property to TopIndex in ListView. It should be quite simple to add such a property to CustomListView class. Upvote 0
SetSelection will cause the item to be visible. There isn't an equivalent property to TopIndex in ListView. It should be quite simple to add such a property to CustomListView class.
AlpVir Well-Known Member Licensed User Longtime User Jul 22, 2013 #3 No need to change the class. It 'just a Code: Copy clv3.Clear S = clv3.JumpToItem (0) Thank you! Upvote 0