addpopupmenu

Adds a pop-up menu, in hierarchical order, under a ribbon menu or as a child menu to a pop-up menu in the Activate user interface. addpopupmenu is only available in the Activate GUI.

Syntax

addpopupmenu(rbname, popupname)

addpopupmenu(uiPopupMenu, popupname)

Inputs

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

Outputs

uiPopupMenu
The handle to the pop-up menu.

Examples

Create a ribbon menu and add two pop-up menus to the given ribbon menu:
pm = addribbonmenu('Test');
pp = addpopupmenu('Test','Test 1');
pp1 = addpopupmenu(pm,'Test 2');