TListView..GetItemAt(X, Y) returns wrong item, if ListView is scrolled (Linux GTK2).
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
When you have a listview with scrollbars, and you scroll e.g. 1 row down, then GetItemAt(X,Y) returns the item as if no scrolling had occurred.
Steps to reproduce:
Open attached sample project in Lazarus.
Make sure buil-mode (ProjectOptions) is set to GTK2.
Build and run.
Hover the mouse over the first row and see that the form's caption indicates the right item.
Now scroll down the listview 1 row.
Again hover the mouse over the first row.
The caption now shows that GetItemAt() still returns the items as if the ListView had never scrolled.
Mantis conversion info:
- Mantis ID: 26767
- OS: Linux
- OS Build: Fedora Core 18
- Build: r46265
- Platform: i386
- Version: 1.3 (SVN)
- Fixed in version: 1.3 (SVN)
- Fixed in revision: 46307 (#89f68bf2)
- Target version: 1.2.6