View Issue Details

IDProjectCategoryView StatusLast Update
0026767LazarusWidgetsetpublic2014-09-24 16:55
ReporterBart BroersmaAssigned ToZeljan Rikalo 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Platformi386OSLinuxOS VersionFedora Core 18
Product Version1.3 (SVN)Product Buildr46265 
Target Version1.2.6Fixed in Version1.3 (SVN) 
Summary0026767: TListView..GetItemAt(X, Y) returns wrong item, if ListView is scrolled (Linux GTK2).
DescriptionWhen 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 ReproduceOpen 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.
TagsNo tags attached.
Fixed in Revision46307
LazTarget1.2.6
WidgetsetGTK 2
Attached Files

Activities

Bart Broersma

2014-09-23 23:05

developer  

lv.zip (3,348 bytes)

Zeljan Rikalo

2014-09-24 08:16

developer   ~0077578

Please test and close if ok. Now offset of scrollbars is applied and getItemAt() returns correct value.

Bart Broersma

2014-09-24 16:55

developer   ~0077591

Fixed,thanks.

Issue History

Date Modified Username Field Change
2014-09-23 23:05 Bart Broersma New Issue
2014-09-23 23:05 Bart Broersma File Added: lv.zip
2014-09-23 23:11 Bart Broersma Summary TListView..GetItemAt(X, Y) returns wrong item, if ListView is scrolled. => TListView..GetItemAt(X, Y) returns wrong item, if ListView is scrolled (Linux GTK2).
2014-09-24 07:21 Zeljan Rikalo Assigned To => Zeljan Rikalo
2014-09-24 07:21 Zeljan Rikalo Status new => assigned
2014-09-24 08:16 Zeljan Rikalo Fixed in Revision => 46307
2014-09-24 08:16 Zeljan Rikalo LazTarget - => 1.2.6
2014-09-24 08:16 Zeljan Rikalo Note Added: 0077578
2014-09-24 08:16 Zeljan Rikalo Status assigned => resolved
2014-09-24 08:16 Zeljan Rikalo Fixed in Version => 1.3 (SVN)
2014-09-24 08:16 Zeljan Rikalo Resolution open => fixed
2014-09-24 08:16 Zeljan Rikalo Target Version => 1.2.6
2014-09-24 16:55 Bart Broersma Note Added: 0077591
2014-09-24 16:55 Bart Broersma Status resolved => closed