hiDisplayMenu
hiDisplayMenu(r_hiMenu[l_position] ) =>t / nil
Description
Displays a menu created by hiCreateMenu, hiCreateSimpleMenu, or hiCreate2DMenu. For non-2D menus, the menu is always displayed at the current cursor’s position at the time hiDisplayMenu is called.
A call to hiDisplayMenu() for 2D menus immediately returns t. However, if you want that the call to hiDisplayMenu() should not return t until the menu is closed (to match the behavior of the previous release), set the menu property dontBlock to nil after creating the menu, as shown below:
MyMenu = hiCreate2DMenu( … )
MyMenu->dontBlock = nil
Arguments
Values Returned
Examples
The following example uses the hiSetBindKey function to define a bindkey for the Schematics application. The bindkey displays the trExampleMenu pop-up menu. For an example of creating this pop-up menu, see hiCreateSimpleMenu.
hiSetBindKey( "Schematics" "Shift Ctrl<Btn2Down> ( 2 )" "hiDisplayMenu( trExampleMenu )" )
Related Topics
Return to top