G
Guest
Hello all
I'm using a listview in my app but I want to scroll the listview
programatically as I hate the look of the standard scrollbar.
So, the listview is scrolled programatically using ensurevisible, ie the
listview shows a maximum of 6 items and if I want to scroll down one I use
the code...
listview.ensurevisible(listview.TopItem.Index + 6)
The problem I have is that I hide the vertical scrollbar using scrollable =
false but, when that is set, ensurevisible doesn't work. It seems that
ensurevisible depends on the listview being scrollable but I the only way I
can find to hide the scrollbar is to set scrollable to false.
Does anyone know of a way to either hide the scrollbar while keeping
scrollable to true or make ensurevisible work when scrollable = false?
Any help would be greatly appreciated.
Thanks
Ben
I'm using a listview in my app but I want to scroll the listview
programatically as I hate the look of the standard scrollbar.
So, the listview is scrolled programatically using ensurevisible, ie the
listview shows a maximum of 6 items and if I want to scroll down one I use
the code...
listview.ensurevisible(listview.TopItem.Index + 6)
The problem I have is that I hide the vertical scrollbar using scrollable =
false but, when that is set, ensurevisible doesn't work. It seems that
ensurevisible depends on the listview being scrollable but I the only way I
can find to hide the scrollbar is to set scrollable to false.
Does anyone know of a way to either hide the scrollbar while keeping
scrollable to true or make ensurevisible work when scrollable = false?
Any help would be greatly appreciated.
Thanks
Ben