MenuCommand Property (AToolBarButton)

Returns or sets the name of the associated menu.

Syntax

Object.MenuCommand [ = sMenuCommand ]

The MenuCommand property syntax has the following parts:

 

Name

Type

Description

Object

AToolBarButton

AToolBarButton class

sMenuCommand

BString

The name of the associated menu

Comments

Clicking on the AToolBarButton object will generate the OnClick event for the associated AMenu object.

Example

The following statement sets the name of the associated menu:

tbrbFileOpen.MenuCommand="mnuFileOpen"

Applies to

AToolBarButton

See Also

MenuDropDown, Name, Prompt