Context menu issue while setting DragButton to left

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

Hi,

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.

 

Regards,

Balaji

Coordinator
Oct 7, 2011 at 8:26 AM

how do you show your context menu?

Oct 7, 2011 at 8:34 AM

thanks for the quick response.

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

Coordinator
Oct 7, 2011 at 8:37 AM

so how do you do it? ;}

Oct 7, 2011 at 8:51 AM

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

BaseMarker.Cs

 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 :)

 

Coordinator
Oct 7, 2011 at 10:44 AM

still have no idea