OnPopupMenu

This event occurs when the user right-clicks the Navigation Map. With the bstrContextMenu parameter, you can define a pop-up menu which is displayed when the method is called.

When a command in the menu is selected, an OnCommand event is triggered providing the command identifier

 

JavaScript

 

OnPopupMenu(

       MapX,

       MapY,

       TerrainX,

       TerrainY,

       bstrContextMenu)

 

C#

 

void OnPopupMenu(

       int MapX,

       int MapY,

       double TerrainX,

       double TerrainY,

       out string bstrContextMenu)

 

C++

 

HRESULT OnPopupMenu

       int MapX,

       int MapY,

       double TerrainX,

       double TerrainY,

       BSTR* bstrContextMenu)

Parameters

MapX

The clicked on X-coordinate, in map pixels.

MapY

The clicked on Y-coordinate, in map pixels.

TerrainX

The terrain X -coordinate which corresponds to MapX.

TerrainY

The terrain Y -coordinate which corresponds to MapY.

bstrContextMenu

An XML string, see method description.