Engine.GetToolMenuItemInfoEx
- Mise à jour2025-07-21
- Temps de lecture : 1 minute(s)
Engine.GetToolMenuItemInfoEx
Syntax
Engine.GetToolMenuItemInfoEx( menuIndex, itemIndex, itemText, subMenuIndex, itemAttributes, uniqueItemID)
Purpose
Remarks
Returns information about a Tools menu item, which you specify with a menu index and an item index.
Use this information when constructing a Tools menu in a user interface. You must call the Engine.ConstructToolMenus method before calling this function.
Parameters
menuIndex As Long
[In] Specifies a zero-based index for a Tools menu or submenu.
itemIndex As Long
[In] Specifies a zero-based index for an item within the menu or submenu.
itemText As String
[Out] Returns the text to display in the menu item.
subMenuIndex As Long
[Out] If the item is a submenu, this parameter returns the zero-based menu index of the Tools menu for the item. Otherwise, it returns -1 .
itemAttributes As Long
[Out] The bitwise-OR combination of one or more ToolMenuItemAttributes constants. Use the bitwise-AND operator to determine whether an item has a specific attribute.
uniqueItemID As Long
[Out] Returns a unique ID to identify the menu item. Use this ID to invoke the Tools menu item or to obtain the menu item information again at a later time.
See Also
Engine.GetEditTimeToolMenuItems