hiSetWindowMenu
hiSetWindowMenu(
g_menu
w_windowId
)
=> t / nil
Description
Associates the given menu with the specified window.
Arguments
|
g_menu
|
Menu must have been returned by a call to either hiCreateSimpleMenu or hiCreateMenu. If menu is nil, any previous menu gets disassociated with the window.
|
|
w_windowId
|
Window ID you specify. You should not associate a fixed menu with a window. Only one menu can be associated with a window at any given time. Multiple calls to this routine disassociate any previous menu that was set. After a menu has been associated with a window, the menu can be displayed with hiDisplayWindowMenu.
|
Values Returned
|
t
|
The menu is set.
|
|
nil
|
The menu is not set. An error message is also issued.
|
Related Topics
Menu Functions
hiCreateMenu
hiCreateMenuItem
hiCreateSliderMenuItem
hiCreateSeparatorMenuItem
hiSetActionChecked
hiDisplayWindowMenu
Return to top