removepopupmenu

Removes a pop-up menu from the Compose user interface. removepopupmenu is only available in the Compose GUI.

Syntax

removepopupmenu(rbname, popupname)

removepopupmenu(uiPopupMenu)

Inputs

rbname
The name of the ribbon menu.
Type: string
popupname
The name of the pop-up menu.
Type: string
uiPopupMenu
The handle of the pop-up menu.
Type: class

Examples

Remove the given pop-up menu:
pm = addribbonmenu('Test');
pp = addpopupmenu('Test','Test 1');
pp1 = addpopupmenu(pm,'Test 2');
removepopupmenu('Test', 'Test 1');
removepopupmenu(pp1);