[Gambas-bugtracker] Bug #2733: ListView - Scrolling at the moment of Selection
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Tue Apr 11 12:13:31 CEST 2023
http://gambaswiki.org/bugtracker/edit?object=BUG.2733&from=L21haW4-
Comment #5 by Claus DIETRICH:
Hi Bruce
Thanks for your comments. I am aware of that. I moved the internal cursor and used the selected-method to select it, which makes it the "current" one.
Meanwhile I found a solution by moving the line "Try ListView1.item.EnsureVisible"
From ...
Public Sub Form_Activate()
Try ListView1.item.EnsureVisible
End
to ...
Public Sub Form_Arrange()
Try ListView1.item.EnsureVisible
End
I wasn't aware that the Activate-event fires also, when the form regains the focus. However, since I still have no explanation for this trial-and-error-solution, I leave it up to Benoit to decide whether it is worth to have a look into the ListView.
With best regards
Claus
More information about the Bugtracker
mailing list