Accusoft ImagXpress 13
MenuSetItemChecked Method
An enumIXtool enumeration.
Top-level menu ID.
Indicates whether the menu item is checked.
If True, and bChecked is True, then the method disables all other items on the same menu level.
Description
Sets the Checked attribute of the specified menu item on the specified menu.
Syntax
Visual Basic
Public Sub MenuSetItemChecked( _
   ByVal Menu As enumMenu, _
   ByVal Tool As enumIXTool, _
   ByVal TopMenuID As Long, _
   ByVal SubMenuID As Long, _
   ByVal bChecked As Boolean, _
   ByVal bExclusive As Boolean _
) 
Parameters
Menu
ValueDescription
Menu_ContextContext menu activated.
Menu_ToolbarToolbar menu activated.

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

When menu type 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
Top-level menu ID.
SubMenuID
Sub-level menu ID. If the menu item is to be a top-level menu item then the subMenuID should be 0.
bChecked
Indicates whether the menu item is checked.
bExclusive
If True, and bChecked is True, then the method disables all other items on the same menu level.
Remarks

A menu ID of 4100-4200 is reserved for menu separator bars and will not have a enabled state.

Indicates whether the menu item should have a check-mark visible next to the item. If the item is specified to be checked and exclusive, all other items on the same menu level are unchecked.

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

See Also

ImagXpress Object  | ImagXpress Members  | enumIXTool Enumeration  | enumMenu Enumeration

 

 


©2019. Accusoft Corporation. All Rights Reserved.

Send Feedback