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

hiIsMenuItemEnabled

hiIsMenuItemEnabled(
r_hiMenu
s_itemHandle
[ w_windowId ]
) 
=> t / nil 

Description

Determines whether a menu item is enabled.

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, or when the action was created with hiCreateAction.

w_windowId

Optional window argument. If specified, only the menu on this window is looked at. This is useful if the same menu has been placed on more than one menu. This argument is also necessary when disabling a menu item on a window fixed menu.

Values Returned

t

The specified menu item is enabled.

nil

The menu or menu item cannot be found, or the menu item is disabled.

Related Topics

Menu Functions

hiCreatePulldownMenu

hiCreateMenu

hiCreateMenuItem

hiCreateSliderMenuItem

hiCreateSeparatorMenuItem

hiSetActionChecked

hiDisableMenuItem

hiEnableMenuItem


Return to top
 ⠀
X