Trapping mouseclick events

Oct 7, 2008 at 2:00 PM
Edited Oct 7, 2008 at 2:01 PM
Hi

I want to trap a right mouse click on a vertex so that I can show a context menu. To do this I am trying to trap the controls mouse_click event and check if any vertices are selected. The mouse click event for the control only fires when there is no map rendered. After the map renders, the event does not fire. I tried using the map mouse click event as well with the same result.

The vertex click event does fire but there doesn't seem to be a way to determine which mouse button was clicked. Is this a bug or am I doing something incorrectly? Thanks in advance.
Oct 7, 2008 at 4:41 PM
Yuben:

Handle the GraphMouseUp event instead, and check the GraphMouseEventArgs.Button property to determine which button was pressed.

-- Tony