On Fri, Sep 28, 2012 at 10:59 AM, Staffan Tylen <staffan.ty...@gmail.com>wrote:
> I'm trying to implement a pop-up menu in a tree-view and am using the
> hitTestInfo method to determine whether to show the menu or not:
>
> ::method onTreeViewContext unguarded
> expose tree cmenu
> pos = .Point~new(x,
> y)
> say tree~hitTestInfo(pos)~hItem tree~hitTestInfo(pos)~location
> if tree~hitTestInfo(pos)~hItem <> 0 then cmenu~show(pos)
>
>
Where is x and y coming from? If you are getting erratic results, x and y
are probably not correct.
I'd need to see more than the above to give you a definitive answer.
--
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