AddCustomSubMenu

AddCustomSubMenu — a convenience method for adding a menu.

Syntax

AddCustomSubMenu (label, pos?=._TrayMenuPosition)
    

Arguments

label

The name of the menu, as a text string, that will actually appear on the menu.

pos

An integer desinating the position of this item on the menu. This is an optional argument. If not specified, the value of the _TrayMenu class variable will be used.

Returns

The value of the ._CustomSubmenu class variable, a positive integer.

Description

This method is a convenience method for adding a menu. It is a wrapper on AddSubMenu that also automatically assigns the parent menu and arranges its items sequentially as they coded, using the AddCustomMenuItem method.