Pops up the menu at the position specified.
[Visual Basic .NET]
Public Sub PopupMenu ( _
ByVal X As Integer, _
ByVal Y As Integer, _
ByVal hWndParent As Integer _
)
[C#]
public void PopupMenu (
int X,
int Y,
int hWndParent
);
[C++]
HRESULT PopupMenu(
Long X,
Long Y,
long hWndParent
);
[C++]
Parameters
X [in]
X is a parameter of type Long
Y [in]
Y is a parameter of type Long
hWndParent [in]
hWndParent is a parameter of type long
Product Availability
Available with ArcGIS Engine.
Description
Creates a popup menu of the ToolbarMenu at the specified coordinates, supplied in pixels, relative to the top left of the parent window handle hWndParent.
The PopupMenu method is called automatically if the ToolbarMenu is hosted on the ToolbarControl, and the user has clicked on the menu item. In such cases the ToolbarMenu pops up just below the item.
If the ToolbarMenu is a standalone popup menu use the SetHook method, and optionally share the CommandPool with an existing one within the application.
See Also
IToolbarMenu Interface
.NET Snippets
Add Editing Commands to ToolbarControl |
Create PopUp ToolbarMenu
.NET Samples
Creating toolbar menus that work with the ToolbarControl (Code Files:
ToolbarMenu) |
Cut polygons without selection edit task (Code Files:
EditingForm) |
Custom reshape polyline edit task (Code Files:
EditingForm) |
ArcGIS Network Analyst extension Engine application (Code Files:
frmMain) |
Displaying a TOCControl context menu (Code Files:
TOCContextMenuForm) |
Managing snap agents (Code Files:
EditingForm) |
Using HookActions in custom commands (Code Files:
HookActions) |
Custom vertex editing commands (Code Files:
EditingForm) |
Building a MapViewer application using the ArcGIS Engine controls (Code Files:
MapViewer) |
Implementing a property page for an ArcGIS Engine application (Code Files:
TocContextMenuClass) |
Save a layer file in a MapControl application (Code Files:
ContextMenuClass) |
Edit event listener (Code Files:
EditingForm) |
Schematics Engine application (Code Files:
MainForm) |
Feature editing with the control commands (Code Files:
FeatureEditing)