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

hiSetMenuItemCallback

hiSetMenuItemCallback(
r_hiMenu 
s_itemHandle 
t_callback 
) 
=> t / nil 

Description

Changes the callback associated with all instances of a specified menu item.

Arguments

r_hiMenu

Menu created with hiCreateMenu, hiCreatePulldownMenu, hiCreateHorizontalFixedMenu, or hiCreateVerticalFixedMenu.

s_itemHandle

SKILL menu item handle specified when the menu item was created with hiCreateMenuItem or hiCreateSliderMenuItem.

s_itemHandle cannot be an action.

t_callback

Specifies the new SKILL procedure to run when this menu item is selected. Separate multiple procedures with a space.

Values Returned

t

The callback is changed.

nil

The callback is unchanged. An error message is also issued.

Related Topics

Menu Functions

hiCreatePulldownMenu

hiCreateMenu

hiCreateMenuItem

hiCreateSliderMenuItem

hiCreateSeparatorMenuItem

hiDisableMenuItem

hiEnableMenuItem


Return to top
 ⠀
X