Returns or sets the menu type.
Object.Type [ = enMenuType ]
The Type property syntax has the following parts:
Name |
Type |
Description |
Object |
AMenu |
AMenu object |
enMenuType |
enumAMenuType |
An integer specifying the menu type. |
enumAMenuType:
Name |
Value |
Description |
amenuTypeItem |
0 |
Item |
amenuTypeSeparator |
1 |
Separator |
amenuTypePopup |
2 |
Popup |
amenuTypeBar |
3 |
Bar |
The top level menu can have styles of: bar or popup. Submenu items can have styles of: item, separator, or popup.
Menu Level |
Type |
Example/Description |
Top level |
Bar
|
Such as the menubar shown with File and Edit: |
Popup |
This type will appear whenever the user right clicks the mouse and has no relationship to the menubar used on forms. |
|
Menu item |
Item |
Such as the Open item below: |
Separator |
Such as the separator bar between Open and Close in the above example. |
|
Popup |
Such as the Save item below. When the Save item's type was set to popup, it can contain submenus, such as X shown below: |
The following statement changes the AMenu's Type to become a separator bar
mnu1.Type=amenuTypeSeparator