remove_menu_action

remove_menu_action — removes a menu action.

Syntax

remove_menu_action (menu_id, s_exp)
    

Arguments

menu_id

A unique ID number for this item.

s_exp

A Gamma expression that is the action to be removed.

Returns

A list:

(menu_id s_exp)

Where the s_exp is in Lisp format.

Description

This function removes a menu action, usually one that was added by add_menu_action.

Example

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();
    }
...