-
Notifications
You must be signed in to change notification settings - Fork 16
Description
... given that there are enough nodes to fill the entire view window. VTV seems to have a "blind spot" approximately the height of the headers (just guessing ...) at the bottom of the VTV control's visible area. If I hide the headers, onClick works OK on all nodes.
Seems like the mouse hit test does not correctly take into account the size of the header. Observed on Windows 10, but also confirmed on QT/GTK2 by Theo and others (see German Lazarus Forum https://www.lazarusforum.de/viewtopic.php?f=18&t=13670)
Tested with Lazarus Built-in VTV and 5.5.3 - LCL2 and latest from SVN on Lazarus 2.0.12 / Windows 10
Steps to reproduce: use the enclosed sample. Klick any of the default nodes ans see onClick work in the status bar. Use the [+] button to add nodes until the last node (usually node 9) is inserted at the very bottom of the TreeView. Click it and you won't get any feedback from onClick in the status bar --> onClick has not fired.
There are variants like insert more nodes, scroll down the list to the very end and click the last node --> onClick won't fire.
Use the checkbox to hide the headers, and the problem is gone alltogether.
Armin.
Source Code:
Last Node Hit Test.zip