[Gambas-user] scroll to bottom

Benoît Minisini gambas at ...1...
Wed Jun 10 21:19:10 CEST 2009


> I just ran into the need for this also, and noticed the listview does not
> offer a scroll() method.
>
> In my case I need to scroll it back to 0,0 the very top.
> Anyone got any idea how to get this done?
>
> On Jun 10, 2009 2:10 PM, "Pete Morrison" <pkmorrison at ...626...> wrote:
>
> I am trying to use a listview to provide a display of progress messages
> such that
> the newest should be visible at the bottom - ie scroll up as new message
> are added.
> Have tried .MoveLast & .Refresh as i add items - does nothing visible.
>
> Of course the scroll bar can be manually moved  by the user but that is not
> very elegant.
>
> Is there any other list type control that will let me do this or am I
> missing something.
> --
>

Listview items have an "EnsureVisible" method, that will scrolls the ListView 
so that the specified item becomes visible.

Hope that helps...

-- 
Benoît




More information about the User mailing list