Scilab Function

uimenu - Create a menu or a submenu in a figure

### Parameters

- `o` parent : integer Handle of menu's parent
- `o` propi : string character name of a property to set up
- `o` vali : scilab object value to affect to the corresponding property
- `o` h : integer handle of the corresponding menu

### Description

This allows to create menus in a figure. If 'parent' is a figure, then the menu item will be added to the menu bar of the figure. If 'parent' is a menu item , then the new item will be added to the parent item, allowing to create cascaded submenu. The 'callback' property allows to set up the scilab instruction to call when the item is selected by the user. The 'label' property allows to set up the text appearing for the item.

### Examples

    f=figure('position', [10 10 300 200]);
    // create a figure
    m=uimenu(f,'label', 'windows');
    // create an item on the menu bar
    m1=uimenu(m,'label', 'operations');
    m2=uimenu(m,'label', 'quit scilab', 'callback', "exit");
    //create two items in the menu "windows"
    m11=uimenu(m1,'label', 'new window', 'callback',"xselect()");
    m12=uimenu(m1,'label', 'clear  window', 'callback',"xbasc()");
    // create a submenu to the item "operations"
    close(f);
    // close the figure

### See Also

`figure` `uicontrol` `set` `get`

### Author

Bertrand Guiheneuf