hiCreateHorizontalFixedMenu
hiCreateHorizontalFixedMenu(s_menuHandlel_menuItemsx_rowsx_cols[S_doneCallback] [s_showTextWithIcon] ) =>r_hiMenu
Description
Creates a horizontal fixed menu that is a free-floating menu unattached to any application window. The fixed menu is created as a grid of row x column dimensions, and contains menu item objects created by hiCreateMenuItem. An additional Done item is added as the last item. Selecting Done removes the fixed menu from the screen.
Menu items you want to display in the fixed menu are inserted in row-major order.
The width and height of the horizontal fixed menu is determined by the number of rows and columns in the menu. Once the menu is created, you can display it with hiDisplayFixedMenu.
Horizontal fixed menus appear across the entire top or bottom of the root window (screen), rather than an application window. These fixed menus are shared among all Cadence application windows in the root window.
Arguments
Value Returned
|
The SKILL structure representing the menu. The menuHandle can be referenced by menu->hiMenuSym. |
Examples
Creates a horizontal fixed menu with items trMenuItemOne and trMenuItemOne.
hiCreateHorizontalFixedMenu (
’trExampleHorizontalFixedMenu
list ( trMenuItemOne trMenuItemTwo )
1
2
)
If you need to create a series of menu items for the fixed menu, it is more efficient to create a symbol rather than creating each menu item individually.
Procedure ( trCreateMenuItem( theMenuSymbol )
set(
theMenuSymbol
hiCreateMenuItem(
?name theMenuSymbol
?itemText get_pname( theMenuSymbol )
?callback sprintf ( nil "println ( ’%L )" theMenuSymbol )
)
) ; set
) ; procedure
trCreateMenuItem ( 'item1 )
trCreateMenuItem ( 'item2 )
trCreateMenuItem ( 'item3 )
trCreateMenuItem ( 'item4 )
trCreateMenuItem ( 'item5 )
trCreateMenuItem ( 'item6 )
hiCreateHorizontalFixedMenu(
'trExampleHorizontalFixedMenu
list( item1 item2 item3 item4 item5 item6 )
1 ;;; number of rows
6 ;;; number of columns
)
hiDisplayFixedMenu(
trExampleHorizontalFixedMenu
"top"
)
hiCreateVerticalFixedMenu(
'trExampleVerticalFixedMenu
list ( item1 item2 item3 item4 item5 item6 )
6 ;;; number of rows
1 ;;; number of columns
)
hiDisplayFixedMenu(
trExampleVerticalFixedMenu
"left"
)
Related Topics
Return to top