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

hiSetMenuItemText

hiSetMenuItemText(
r_hiMenu 
s_itemHandle 
t_itemText 
) 
=> t / nil 

Description

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

Arguments

r_hiMenu

Created with hiCreateMenu or hiCreatePulldownMenu.

s_itemHandle

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

s_itemHandle cannot be an action.

t_itemText

Displays the new text specified in the menu item.

To set the access key for the menu item, add an ampersand before the desired letter. For example, if the menu item is Replace and you want P to be the access key, you would specify this argument as "Re&place".

Values Returned

t

The text is changed.

nil

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

Related Topics

Menu Functions

hiCreatePulldownMenu

hiCreateMenu

hiCreateMenuItem

hiCreateSliderMenuItem

hiCreateSeparatorMenuItem

hiDisableMenuItem

hiEnableMenuItem


Return to top
 ⠀
X