[Gambas-bugtracker] Bug #2733: ListView - Scrolling at the moment of Selection
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Tue Apr 11 12:16:36 CEST 2023
http://gambaswiki.org/bugtracker/edit?object=BUG.2733&from=L21haW4-
Comment #6 by Bruce STEERS:
If Your ListView1_MouseUp() event contained the following...
ListView1.MoveCurrent()
as it's first command before using ListView1.Item then that will move the internal cursor from item 0 to the current selection on click and your code should work better.
Hope that all makes sense Claus :)
So in summary, The internal cursor (ListView1.Item) does not move around automatically for you.
ListView1.Item is set using .MoveTo() , .MoveNext() .MoveFirst(), MoveCurrent() etc and you should only use ListView1.Item if you are using the internal cursor methods to position it where you want it.
otherwise just use ListView1.Current to get the current selection.
Respects
BruceS
Bruce STEERS changed the state of the bug to: Opened.
More information about the Bugtracker
mailing list