uicontextmenu Creates a contextual menu

## Syntax

                h = uicontextmenu()

## Description

This function creates an empty contextual menu. The items of the menu can be added as children, with uimenu.

The menu appears on the screen each time that an item is created.

It is displayed exactly where the mouse pointer is, even if the pointer is out of any Scilab element. If the pointer is out of the computer's screen, the menu is displayed on the screen's edge beyond which the pointer is located.

It remains at the top level foreground, in front of any Scilab GUI or any external GUI of external applications, as long as no mouse button is clicked anywhere, on the menu or outside.

## Example

    // Create a context menu
    hMenu = uicontextmenu();

    // Create the menu items (that may be submenus)
    hItem1 = uimenu("Label", "Item1", "Parent", hMenu, "Callback", "disp(""Item1 clicked!"")");
    hItem2 = uimenu("Label", "Item2", "Parent", hMenu, "Callback", "disp(""Item2 clicked!"")");
    hItem3 = uimenu("Label", "Item3", "Parent", hMenu, "Callback", "disp(""Item3 clicked!"")");

## See also

- uimenu
- addmenu
- uicontrol