The Menu class is a collection of Buttons having a specific behavior
There are no constructors for this class. Menus are created with the DFrame or Bar addMenu, addContextMenu and addTaskMenu methods:
var menu = dFrame.addMenu(parameters):
Instantiate a Menu on a DFrame
var menu = bar. addMenu (parameters): Instantiate
a Menu on a Bar.
var menu = barLayer. addMenu (parameters): Instantiate a Menu on a BarLayer