Description

Adds a new McCommandBar to the collection.

Return Type

None  

Syntax

object.Add Name, [PositionOrType], [Data]

The Add Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McCommandBars.
NameRequired. A String value.

Name of the new McCommandBar. Position - McCommandBar type.

PositionOrTypeOptional. A mcCommandBarPosition enumeration, as described in settings.
DataOptional. A Variant value.

Optional Data to store in McCommandBar.Tag.

Settings

The settings for PositionOrType are:

ConstantValueDescription
 mcBarDefault0
 mcBarFloating1

The bar is initially floating on the desktop..

 mcBarLeft2

Docked on the left.

 mcBarTop3

Docked on the left.

 mcBarRight4

Docked on the left.

 mcBarBottom5

Docked on the left.

 mcBarMenu6

This is the menu bar.

 mcBarPopup7

Can be a menu bar sub-menu or a context menu.

 mcBarShortcut8

Represents shortcut panes.

 mcBarWorkspace9

The toolbar at the bottom of image workspaces.

Remarks

This method is called by Load while parsing the .mnu file.