Description

This class is used for all command bar children exposed in McCommandBar.Controls (McCommandBarControls).

Remarks

This is also the base class for McCommandBar.

Members

Methods
Create

Realizes an McCommandBarControl, once it is initialized.

Delete

Deletes this control.

Execute

Runs the OnAction VBA code, and record it when Record is True.

Load

Loads an McCommandBarControl from an IXMLDOMNode object.


Properties
CaptionRead-write property

Set or get the caption for a menu entry or a toolbar button.

EnabledRead-write property

Get or set whether a menu entry or a toolbar button is enabled or not.

FlagsRead-write property

Get or set mcCommandBarControlImageFlags flags for a control.

IconRead-write property

Set or get the icon for a menu item, a toolbar button or a shortcut.

IDRead-only property

Returns the id for this object.

LicenseRead-only property

Returns the license string for this control.

OnActionRead-write property

Get or set the VBA code executed when a button is pressed or a menu selected.

ParentRead-write property

Returns the parent (menu or toolbar) of this control, as defined in the .mnu file.

RecordRead-write property

Get or set whether OnAction will be automatically recorded when this control is pressed or selected.

SelectedRead-write property

Get or set the selected state of a control.

SourceRead-only property

Returns the IXMLDOMNode object used to define this control in Load.

TagRead-write property

Get or set a user-defined value associated with this object.

TooltipTextRead-write property

Get or set the tooltip text for menus and toolbar buttons.

TypeRead-only property

Returns the McCommandBarControl type as defined in the .mnu file.

VisibleRead-write property

Get or set the visibility of a control.


Events
Click

This event is fired when a menu or toolbar entry is clicked if the OnAction field is empty.