yfleury Active Member Licensed User Longtime User Aug 11, 2020 #1 B4X: Copy Sub Button1_Click CustomListView1.AddTextItem("Compteur " & compteur, 1) CustomListView1.ScrollToItem((CustomListView1.Size-1)) compteur=compteur+1 End Sub the last item is always hide. I have to scroll it manually to see last item. Is it way to show last item each time I add one?
B4X: Copy Sub Button1_Click CustomListView1.AddTextItem("Compteur " & compteur, 1) CustomListView1.ScrollToItem((CustomListView1.Size-1)) compteur=compteur+1 End Sub the last item is always hide. I have to scroll it manually to see last item. Is it way to show last item each time I add one?
M Mahares Expert Licensed User Longtime User Aug 11, 2020 #2 yfleury said: the last item is always hide. I have to scroll it manually to see last item Click to expand... Bonjour Monsieur Fleury: Use this. It will work for you: Code: Copy Sub Button1_Click clv1.AddTextItem("Compteur " & compteur, 1) Sleep(0) clv1.ScrollToItem(clv1.GetSize-1) compteur=compteur+1 End Sub Upvote 0
yfleury said: the last item is always hide. I have to scroll it manually to see last item Click to expand... Bonjour Monsieur Fleury: Use this. It will work for you: Code: Copy Sub Button1_Click clv1.AddTextItem("Compteur " & compteur, 1) Sleep(0) clv1.ScrollToItem(clv1.GetSize-1) compteur=compteur+1 End Sub