lmgrCreateMenu
lmgrCreateMenu(t_menuName l_menuAttributes) =>t / nil
Description
Creates a structure for a menu, which can be populated with menu items. Once this menu is created, you can install it into the top menu bar or into another parent menu using lmgrAddMenuItems.
You can specify a predefined menu name in order to change its label or to add a single map callback attribute to a predefined menu.
A map callback must finish its execution quickly. Lengthy callback options are automatically ignored. Additionally, the Library Manager may choose to not wait for map callbacks to finish if callbacks require more than 5 seconds elapsed time. The reason behind these restrictions is that the X Window System remains locked for all other programs while a map callback is being processed. Efficient shared usage necessitates fast and efficient execution of map callbacks.
The predefined name pop-up refers to all pop-ups started from the main selection lists. The label and font attributes have no significance within a pop-up menu. This mechanism exists only to allow spThis SKILL API can be used in cdsLibMgr.il only.ecifying the map callback of pop-ups.
This SKILL API can be used in cdsLibMgr.il only.
Arguments
Value Returned
|
An error occurred. In this case, the menu will not be created. |
Examples
lmgrCreateMenu ( "MyPulldown" '( ( "label" "My pulldown" ) ) )
=> t
Related Topics
Return to top