Functions | |
short | mt_menu_attach (short me_flag, OBJECT *me_tree, short me_item, MENU *me_mdata, short *global) |
short | mt_menu_bar (OBJECT *me_tree, short me_mode, short *global) |
short | mt_menu_click (short click, short setit, short *global) |
short | mt_menu_icheck (OBJECT *me_tree, short me_item, short me_check, short *global) |
short | mt_menu_ienable (OBJECT *me_tree, short me_item, short me_enable, short *global) |
short | mt_menu_istart (short me_flag, OBJECT *me_tree, short me_imenu, short me_item, short *global) |
short | mt_menu_popup (MENU *me_menu, short me_xpos, short me_ypos, MENU *me_mdata, short *global) |
short | mt_menu_register (short ap_id, char *me_text, short *global) |
short | mt_menu_settings (short me_flag, MN_SET *me_values, short *global) |
short | mt_menu_text (OBJECT *me_tree, short me_item, char *me_text, short *global) |
short | mt_menu_tnormal (OBJECT *me_tree, short me_item, short me_normal, short *global) |
short | mt_menu_unregister (short id, short *global) |
The Menu Library assists in the handling of system menu bars and popup menus. In addition, individual control of menu items can also be handled through these functions.
|
allows an application to attach, change, or remove a sub-menu. It also allows the application to inquire information regarding a currently defined sub-menu.
If a menu bar having attachments is removed with mt_menu_bar( NULL, MENU_REMOVE ) those attachments are removed by the system and must be reattached with this call if the menu is redisplayed at a later time. Several recommendations regarding sub-menus should be adhered to:
|
|
displays a specialized OBJECT tree on the screen as the application menu. It can also be used to determine the owner of the currently displayed menu bar in a multitasking AES.
|
|
|
|
adds/removes a checkmark in front of a menu item.
|
|
enables/disables menu items.
|
|
shifts a sub-menu that is attached to a menu item to align vertically with the specified object in the sub-menu.
|
|
displays a popup menu and returns the user's selection.
|
|
registers desk accessories in the 'Desk' menu and renames MultiTOS applications which appear there.
Applications running under MultiTOS may use this function to provide a more functional title for the 'Desk' menu than the program's filename. Calling mt_menu_register() with a parameter of REG_NEWNAME is used to change the internal process name of the application returned by mt_appl_find() and mt_appl_search(). This is useful if you know another process will attempt to find your application as a specific process name and the user may have renamed your application filename (normally used as the process name). |
|
changes the global settings for popup and scrollable menus
|
|
changes the text of a menu item.
|
|
highlights/un-highlights a menu-title.
|
|
remove accessory name from menu
|