Accusoft ImagXpress 12
MenuDeleteItem Method
See Also  Send comments on this topic.
Tool
An enumIXTool value.
TopMenuID
Top-level menu ID of the item to change.
AccusoftImagXpress12 ActiveX DLL > ImagXpress Object : MenuDeleteItem Method

Glossary Item Box

Description

Removes the specified item from the specified menu.

Syntax

Visual Basic
Public Function MenuDeleteItem( _
   ByVal Menu As enumMenu, _
   ByVal Tool As enumIXTool, _
   ByVal TopMenuID As Long, _
   ByVal SubMenuID As Long _
) As Boolean

Parameters

Menu
ValueDescription
Menu_ContextContext menu activated.
Menu_ToolbarToolbar menu activated.
An enumMenu value.
Tool
ValueDescription
TOOL_HandImage panning tool.
TOOL_MagMagnifying window.
TOOL_MouseWheelHorizScrollMouse wheel horizontal scroll.
TOOL_MouseWheelVertScrollMouse wheel vertical scroll.
TOOL_MouseWheelZoomMouse wheel zoom.
TOOL_NoneNo tool selected.
TOOL_PanImage viewing pan tool.
TOOL_SelectRubberband window selection tool.
TOOL_ZoomInZoom in tool.
TOOL_ZoomOutZoom out tool.
TOOL_ZoomRectZoom rectangle tool.
An enumIXTool value.
TopMenuID
Top-level menu ID of the item to change.
SubMenuID
Sub-level menu ID to change, if this is to change a sub-level menu item, otherwise this parameter should be 0.

Return Type

The result of the delete operation.

Remarks

If the menu item is to be a top-level menu item then the SubMenuID should be 0. However, this will delete all sub-level menu items as well for that top-level menu item.

If the TopMenuID and SubLevelID are both 0 then the entire menu is cleared.

Note: The Toolbar must be activated before any context menus can be modified.

See Also

©2013. Accusoft Corporation. All Rights Reserved.