[Gambas-bugtracker] Bug #2733: ListView - Scrolling at the moment of Selection

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Tue Apr 11 11:50:50 CEST 2023


http://gambaswiki.org/bugtracker/edit?object=BUG.2733&from=L21haW4-

Comment #4 by Bruce STEERS:

Are you aware that ListView1.Item is NOT the current selected item.

You should use ListView1.Current.EnsureVisible

moving/clicking the mouse and keyboard do not move the ListView1.Item internal cursor.

you use ListView1.MoveTo(0)   this sets internal cursor to item 0

then when you use ListView1.Item.EnsureVisible you are requesting item 0 is visiblebecause you have not set the internal cursor.

Try using ListView1.Current.EnsureVisible  or use ListView1.MoveCurrent to put the internal cursor to the current selected item.




More information about the Bugtracker mailing list