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

hiCreate2DMenu

hiCreate2DMenu(
s_menuHandle
t_menuTitle
l_menuItems
) 
=> r_hiMenu 

Description

Creates a two-dimensional 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 hiCreateSimpleMenu and hiCreateMenu.

Arguments

s_menuHandle

A unique global SKILL symbol used to reference this menu.

t_menuTitle

Name of the menu 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 item being a list containing the 2D representation of a form button or label field. Each item list contains three elements:

  • A button or label form field created by hiCreateButton or hiCreateLabel
  • The point where the upper-left corner of this field should be placed .
  • A list containing the width and height of the field.

Value Returned

r_hiMenu

The SKILL structure representing the menu.

Related Topics

Menu Functions

hiCreateButton

hiCreateLabel

hiDisplayMenu

hiSetWindowMenu

hiCreateSimpleMenu

hiCreateMenu


Return to top
 ⠀
X