remove_menu_actionremove_menu_action — removes a menu action.
remove_menu_action (menu_id, s_exp)
menu_idA unique ID number for this item.
s_expA Gamma expression that is the action to be removed.
A list:
(menu_ids_exp)
Where the s_exp is in Lisp format.
This function removes a menu action, usually one that was added by add_menu_action.
This example is part of the WindowsExample.g example
program:
method MonitorWindow.destructor ()
{
...
try
{
with x in .menu_actions do
remove_menu_action (car(x), cdr(x));
}
catch
{
princ ("Error: ", _last_error_, "\n");
print_stack();
}
...