Context menu issue while setting DragButton to left

Topics: General
Oct 7, 2011 at 9:19 AM


i have changed the map panning from Right mouse button to left. But the context menu which was working fine in the Right panning is not getting shown.

i believe it fails in this condition in OnMouseDown in Gmapcontrol.cs

 if(CanDragMap && e.ChangedButton == DragButton && e.ButtonState == MouseButtonState.Pressed)

its urgent. Please let me know.




Oct 7, 2011 at 9:26 AM

how do you show your context menu?

Oct 7, 2011 at 9:34 AM

thanks for the quick response.

we are adding the context menu to the marker object as popup.

Oct 7, 2011 at 9:37 AM

so how do you do it? ;}

Oct 7, 2011 at 9:51 AM

we have BaseMarker class where we create the context menu and in the marker object we use it.


 public ContextMenu CreateContextMenu(string markerTitle, MapControl mapControl)

// Creating Menu and attaching click event


CricleMarker.cs : BaseMarker


During the constructor we the createContextMenu



Is my explanation gives you a view or confusing :)


Oct 7, 2011 at 11:44 AM

still have no idea