Accusoft ImagXpress 13
MenuGetFirstItemID Method
An enumIXtool enumeration.
The variable to receive the TopMenuID of the first menu item. A returned value of 0 indicates there are no menu items.
Description
Gets the first menu ID on the specified level from the specified menu.
Syntax
Visual Basic
Public Sub MenuGetFirstItemID( _
   ByVal Menu As enumMenu, _
   ByVal Tool As enumIXTool, _
   ByRef TopMenuID As Long, _
   ByRef SubMenuID As Long _
) 
Parameters
Menu
ValueDescription
Menu_ContextContext menu activated.
Menu_ToolbarToolbar menu activated.

When menuType is Menu_Toolbar, then the tool parameter is the Tool ID that the menu is associated with.

When menuType is Menu_Context, then the tool parameter has no meaning and can be any 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 enumeration.
TopMenuID
The variable to receive the TopMenuID of the first menu item. A returned value of 0 indicates there are no menu items.
SubMenuID
The variable to receive the SubMenuID of the first menu item.
Return Type
The ID of the first menu.
Remarks

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

See Also

ImagXpress Object  | ImagXpress Members  | enumIXTool Enumeration  | enumMenu Enumeration

 

 


©2015. Accusoft Corporation. All Rights Reserved.

Send Feedback