[Gambas-user] scroll to bottom

Peter Morrison pkmorrison at ...626...
Thu Jun 11 01:52:30 CEST 2009


Benoît Minisini wrote:
>> 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...
> 
Tried it, there is no EnsureVisible method for ListView
"unknown symbos 'EnsureVisible' in class 'ListView'"





More information about the User mailing list