Description

Adds a child McCommandBarControl to an McCommandBarControl.

Return Type

A McCommandBarControl object.  

[out, retval]

Syntax

object.Add (Type, [Key], [ID], [Before], [Parameter])

The Add Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McCommandBarControls.
TypeRequired. A mcCommandBarControlType enumeration, as described in settings.
KeyOptional. A String value.

A locally unique String used to identify the control in the collection.

IDOptional. A Long value.

A globally unique number identifying the control.

BeforeOptional. A Variant value.

The optional position of the new control in the collection.

ParameterOptional. A Variant value.

An optional parameter used to create the control (usually the Caption).

Settings

The settings for Type are:

ConstantValueDescription
 mcControlButton0

McCommandBarControl

 mcControlPopup1

McCommandBarPopup

 mcControlPane2

McCommandBarPane

 mcControlToolbar3

McCommandBar

 mcControlComboBox4

McCommandBarComboBox

 mcControlMenubar5

Only used for Type property.

 mcControlShortcutbar6

Only used for Type property.

 mcControlTypeMask255

Bits used for Type exclusively.

 mcControlCheckBox256

Menus and toolbars can display checkboxes

 mcControlOptionButton512

Toolbars can handle exlusive selection

Remarks

This function is called when parsing the .mnu file.