Replaces the current menu with the specified menu, but does not make the new menu active. REPLACE_MENU also allows you to change the way the menu displays and the role.
Because REPLACE_MENU does not make the new menu active, Oracle Forms does not allow the menu to obscure any part of the active canvas. Therefore, all or part of the menu does not appear on the screen if the active canvas would cover it.
REPLACE_MENU;
PROCEDURE REPLACE_MENU
(menu_module_name VARCHAR2);
PROCEDURE REPLACE_MENU
(menu_module_name VARCHAR2,
menu_type NUMBER);
PROCEDURE REPLACE_MENU
(menu_module_name VARCHAR2,
menu_type NUMBER,
starting_menu_name VARCHAR2);
PROCEDURE REPLACE_MENU
(menu_module_name VARCHAR2,
menu_type NUMBER,
starting_menu VARCHAR2,
group_name VARCHAR2);
PROCEDURE REPLACE_MENU
(menu_module_name VARCHAR2,
menu_type NUMBER,
starting_menu VARCHAR2,
group_name VARCHAR2,
use_file BOOLEAN);
Built-in Type unrestricted procedure
Enter Query Mode yes
PULL_DOWN Specifies that you want Oracle Forms to display the menus in a pull-down style that is characteristic of most GUI platforms.
TRUE Specifies that Oracle Forms should treat the menu_module value as a direct reference to a .MMX menu runfile in the file system. This value is the only one allowed.
/*
** Built-in: REPLACE_MENU
** Example: Use a standard procedure to change which root
** menu in the current menu application appears in
** the menu bar. A single menu application may
** have multiple "root-menus" which an application
** can dynamically set at runtime.
*/
PROCEDURE Change_Root_To(root_menu_name VARCHAR2) IS
BEGIN
Replace_Menu('MYAPPLSTD', PULL_DOWN, root_menu_name);
END;