Get position or triggering mouse event of MPopupMenu [message #1740198] |
Wed, 10 August 2016 11:12 |
Robert Onslow Messages: 27 Registered: March 2016 |
Junior Member |
|
|
I have a popup menu defined for a part.
I register the menu for a particular control using
menuService.registerContextMenu(xrefPane, "uk.co.xbundle.assembly.xrefs.popupmenu");
The popup menu successfully opens on a right click on the control.
The handler defined for one of the menu items has signature:
@Execute
public abstract void execute(MPopupMenu menu) {
...
}
This works, because the triggering popup menu is injected from the context.
I now need to access the xy of the right mouse click which triggered the popup menu, but I can't find my way through to this.
Does anyone know how to get this, or another idiomatic way to get the riggering MouseEvent through to the handler?
Thanks
Robert
[Updated on: Wed, 10 August 2016 11:13] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.11398 seconds