Hi all. In this forum there is a huge quantity of threads about ListView and CustomListView. The original simple "ListView" has no methods to change the appearence of the selected item (as while the user touches the screen on it). Just to explain me better, what I want to do is to capture the item_click and item_longclick events and do two different actions, one for each event. While executing such actions, I simply want the touched item of the list to appear with a different background, just to remember to the user what element of the list has been choosen.
In practice, I need for a method like ListView.Select(index, true) and ListView.Select(index, false). The first one must show the item as the user is still touching it, while the second will show the item in its normal state.
Edited: another important request is to have an event raised when the ListView scrolls, for instance: ListView_Scrolled(updown as Int).
What is the simplest way to do this ? For my needs, the best option would be to add such methods to the original ListView class (creating a new class that inherits the events and methods of the original and adds the new ones). I still use the B4A version 3.82 on a winXP machine and loading most recent versions / libraries requires me to switch to newer OS, that I don't like very much.
Any help will be greatly appreciated, thanks.
In practice, I need for a method like ListView.Select(index, true) and ListView.Select(index, false). The first one must show the item as the user is still touching it, while the second will show the item in its normal state.
Edited: another important request is to have an event raised when the ListView scrolls, for instance: ListView_Scrolled(updown as Int).
What is the simplest way to do this ? For my needs, the best option would be to add such methods to the original ListView class (creating a new class that inherits the events and methods of the original and adds the new ones). I still use the B4A version 3.82 on a winXP machine and loading most recent versions / libraries requires me to switch to newer OS, that I don't like very much.
Any help will be greatly appreciated, thanks.
Last edited: