Product Documentation
Virtuoso Layout Suite SKILL Reference
Product Version IC23.1, November 2023

iagCreateMenuItem

iagCreateMenuItem(
menuName
menuItemName
functionName
)
=> t / nil

Description

Creates a custom menu item with the user-specified name and adds it to the integrated Abstract Generator. The menu is created if it is not already available, and the menu item is added under it. Function name is the callback procedure for the menu item.

Arguments

menuName

Specifies the name of the menu under which the menu item is created. For example, Tools, Custom_Hook, etc.

menuItemName

Specifies the name of the menu item. For example, Save, Open, etc.

functionName

Specifies the name of the function that can be run using the menu item. functionName can be passed as a string or a symbol.

Value Returned

t

The menu item is created.

nil

No menu item is created.

Examples

Creates a menu item named Open Pre_Hook under the menu Custom_Menu and registers the procedure call displayForm on clicking the menu item.

iagCreateMenuItem("Custom_Menu" "Open Pre_Hook" "displayForm")

Related Topics

Integrated Abstract Generator


Return to top
 ⠀
X