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: |
| object | An expression evaluating to an object of type McCommandBarControls. | | Type | Required. A mcCommandBarControlType enumeration, as described in settings. | | Key | Optional. A String value. A locally unique String used to identify the control in the collection.
| | ID | Optional. A Long value. A globally unique number identifying the control.
| | Before | Optional. A Variant value. The optional position of the new control in the collection.
| | Parameter | Optional. A Variant value. An optional parameter used to create the control (usually the Caption).
| Settings The settings for Type are:
 | mcControlButton | 0 |
McCommandBarControl
|
 | mcControlPopup | 1 |
McCommandBarPopup
|
 | mcControlPane | 2 |
McCommandBarPane
|
 | mcControlToolbar | 3 |
McCommandBar
|
 | mcControlComboBox | 4 |
McCommandBarComboBox
|
 | mcControlMenubar | 5 |
Only used for Type property.
|
 | mcControlShortcutbar | 6 |
Only used for Type property.
|
 | mcControlTypeMask | 255 |
Bits used for Type exclusively.
|
 | mcControlCheckBox | 256 |
Menus and toolbars can display checkboxes
|
 | mcControlOptionButton | 512 |
Toolbars can handle exlusive selection
|
Remarks
This function is called when parsing the .mnu file.
|