I want to capture the MouseClick event in Java script on some ExplorerBarItems and bring up a context menu, but the ExplorerBar object does not expose this event. I capture the Click event, but I don't see any info in the ExplorerBarCancelEventArgs that gives me the mouse information. In looking at the eventArgs.getExplorerBarItem()._node._element.onmousedown, it looks like I should be able to capture it, but I don't know how to connect to that.
Basically, I am trying to capture information that used to be available on the 'Classic' ultrawebtree NodeClick event, but am being challenged in making it work on the new controls.
My items are all dynamically loaded via vb.net (2012) code, with each Group containing distinct information. I used to do this by having each group have it's own UserControl, but with the new controls I have lost that capability! I now add the WebExplorerItems to each dynamically created Group item, and would prefer to add the appropriate listener at that time.
I am using 2013.1 tools with .Net 4.5.
Thanks!
...Steve
Hello Steve,
I will be happy to assist you with your question.
You should be able to retrieve the mouse coordinates using the Window object as demonstrated in the code snippet below:
Please review the code snippet and let me know if you have any questions regarding my suggestion.
Jose,
I am not looking for the Mouse Coordinates!
Perhaps I'm looking at this wrong. I was thinking of adding the events to the ExplorerBarItem. Maybe I don't need to do that.
At a minimum, I need to know what mouse button was clicked on which ExplorerBarItem. I can get the ExplorerBarItem from the eventArgs. Can I get the Mouse buttons from window.event or someplace else???
Thanks...Steve