lmgrAddMenuItems
lmgrAddMenuItems(t_menuName t_popupSet l_names) =>t / nil
Description
Appends the named objects to the specified menu. An item can be another menu. Each menu item or menu can be added to only one menu. Likewise, any menu item can appear at most once in every pop-up menu. Menus cannot be added to a pop-up. Pop-ups must remain a flat structure only. Pop-ups cannot be added to menus.
You can add only menus to the main pull-down menu bar. Do this by specifying an empty string "", or the reserved name menuBar for the t_menuName argument. It is also legal to specify the t_menuName argument as popup or nil when the sole purpose is to add an already added object to an indicated pop-up set.
If radio items are added to a particular menu, then only radio items can be added to that menu. The pull-down menu or submenu cannot contain both radio and non-radio items.
This SKILL API can be used in cdsLibMgr.il only.
Arguments
Value Returned
|
An error occurred, You might have added a menu item to more than one menu or added a menu item that does not exist. |
Examples
Adding myMenuItem1 to the MyPulldown menu and then adding MyPulldown menu to menuBar.
; Add into the new pull-down menu and into
; the Library and Cell popups
lmgrAddMenuItems ( "MyPulldown" "LC" '( "myMenuItem1" ) )
=> t
; Add the new pull-down menu into the menu banner
lmgrAddMenuItems ( "menuBar" "" '( "MyPulldown" ) )
=> t
Related Topics
Return to top