Graeme Geldenhuys wrote:
Can someone confirm this before I submit a Mantis bug report.
Clicking on items in a ListView with vsReport style:
 - If you click on the items 99% of the time the OnClick doesn't fire
 - Clicking to the left of the last column (black space) then the OnClick fires 
every time

The problem seems to be that a (right mouse button) click on a TListView is 
displaced by (-ListView.Left, -ListView.Top).

For example, add two ListViews beneath each other and assign each a popup menu. 
The popup menus appear (-Left,-Top) pixels from the actual mouse position, 
where Left and Top are taken from the actual ListView that was clicked on. 
Adding a ListView to a GroupBox clearly shows that the displacement solely 
consists of the Left and Top of the ListView.

If the displaced position is outside the range of the ListView, even another 
control's popup may show!

Tested: SVN and 0.9.22.

Regards,

Bram

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to