lmgrCreateMenuItem
lmgrCreateMenuItem(t_itemName t_itemType l_itemAttributes) =>t / nil
Description
Creates an instance of a menu item, which should be populated into a single menu. Once this menu item is created, you can install it into a menu using lmgrAddMenuItems().
There are four types of menu items: simple, toggle, radio, and separator. simple is a normal menu item, toggle is a menu item with a tick box next to it, separator is a line to draw between menu items. You define one radio item for each choice in the set of radio options. All the radio items in the set must be collected in their own pull-down menu or submenu.
This SKILL API can be used in cdsLibMgr.il only.
Arguments
Value Returned
|
An error occurred. In this case, the menu item will not be created. |
Examples
lmgrCreateMenuItem ( "myMenuItem1" "simple"
'( ( "label" "Do My Thing" )
( "callback" ( "myThingCallback" ) )
)
) => t
To set menu access key in Library Manager:
lmgrCreateMenuItem(
"myfunc"
"simple"
list(list("label" "My Function2") list("mnemonic" "F") )
)
lmgrCreateMenu( "my_pulldown" list(list( "label" "My Pulldown" ) list( "mnemonic" "P") ) )
lmgrAddMenuItems("my_pulldown" "LCV" list("myfunc"))
lmgrAddMenuItems("" "" list("my_pulldown"))
Related Topics
Return to top