On Fri, Sep 28, 2012 at 11:39 AM, Staffan Tylen <staffan.tylen@gmail.com> wrote:
Excellent, works like a charm. Many thanks.

(The doc says that a .Point object can be used as input to hitTestInfo, this is not the whole truth then I guess.)

No, the doc is correct

clientPos = pos~copy

d = treeView~hitTestInfo(clientPos)

In the above, clientPos is a .Point object.

The original point, pos, is relative to the screen.  The doc says: a point relative to the tree-view control.  So, you need to convert the point relative to the screen to a point relative to the tree-view.  Which is what screen2client() does.

Mark Miesfeld