Description

This class is used to describe panes in the shortcut bar.

Object Model


Remarks

This class is derived from McCommandBar and exposes all of its methods and properties.

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.

ControlsRead-only property

Returns the Controls collection, which contains child objects derived from McCommandBarControl.

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
Hide

This event is fired when a toolbar is closed.

Show

This event is fired when a previously hidden toolbar is displayed.

Update

This event is fired each time the command bar needs to be updated.