|Adding context menus to SVG fields [message #1027614]
||Wed, 27 March 2013 07:23
| Urs Beeli
Registered: October 2012
Location: Bern, Switzerland
We are looking at using SVG fields to display some of the more complex graphical elements. Among other things, we'll need to have context menus not only for the SVG field as such, but for specific elements drawn in the SVG field.|
Using execHyperlink() I am able to use SvgFieldEvent.getURL() to find out which of my drawn elements was clicked. However, I've been unable to find out if the click on the element was done using the left or right mouse button. Is there any way to determine this?
Furthermore, how would I go about creating and showing a dynamic context/popup menu in execHyperlink()?
I've tried adding a menu extending from AbstractMenu to the SVG field (as I would do for any other field) but have not been succesful. Does the SVG field just not support context menus? Or do I need to add additional code to make that work?
Thanks for any pointers.
Powered by FUDForum
. Page generated in 0.16822 seconds