Ooops! :)
OK, thanks.

On Fri, Sep 28, 2012 at 8:47 PM, Mark Miesfeld <miesfeld@gmail.com> wrote:
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
treeView~screen2client(clientPos)

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

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users