Product Documentation
Cadence User Interface SKILL Reference
Product Version IC23.1, September 2023

hiCreateMenu

hiCreateMenu(
s_menuHandle 
t_menuTitle 
l_menuItems 
) 
=> r_hiMenu 

Description

Returns the SKILL representation of a popup menu. Once this menu is created, you can display it with hiDisplayMenu or associate it with a window using hiSetWindowMenu.

A popup menu is a tear-off menu by default, that is, it can be torn off and displayed in its own window anywhere on the screen.

Popup menus can also be created with hiCreate2DMenu and hiCreateSimpleMenu.

Arguments

s_menuHandle

A unique global SKILL symbol used to reference this menu.

t_menuTitle

Title that is displayed in the menu bar.

To set the access key for the menu, add an ampersand before the desired letter. For example, if the menu title is Edit and you want E to be the access key for the menu, you would specify this argument as "&Edit".

l_menuItems

List of menu items, each created by hiCreateMenuItem, hiCreateSliderMenuItem, hiCreateSeparatorMenuItem, or hiCreateAction.

Values Returned

r_hiMenu

The SKILL structure representing the menu. The menuHandle can be referenced by menu->hiMenuSym.

Related Topics

Menu Functions

hiDisplayMenu

hiSetWindowMenu

hiCreateMenuItem

hiCreateSliderMenuItem

hiCreateSeparatorMenuItem


Return to top
 ⠀
X