codebase="hhctrl.ocx#Version=4,73,8561,0"> codebase="hhctrl.ocx#Version=4,73,8561,0" > codebase="hhctrl.ocx#Version=4,73,8561,0" >
 
  PopupMenuItem object

A single menu item on an AutoCAD pull-down menu.

VBA class name:

AcadPopupMenuItem 

Create using:

PopupMenu.AddMenuItem
PopupMenu.AddSeparator
PopupMenu.AddSubmenu 

Access via:

PopupMenu.Item 

A popup menu item represents an entry in a menu. There are three types of popup menu items available:

Simple menu items have an index, a label, a tag, and a macro. The index is the position on the menu where the individual menu item is located. The label is a string that defines the content and formatting of the menu item as it appears to the user. The tag is a string consisting of alphanumeric and underscore (_) characters. This tag uniquely identifies the menu item within a given menu. Menu items may have identical labels within the menu, but they cannot have identical tags. The end user does not see the tag. The macro is a series of commands that execute specific actions when a menu item is selected.

Submenu items also have an index, a label, and a tag. They do not have a macro associated with them. Instead, they have an entire PopupMenu object associated with them. This PopupMenu object is the menu that appears when the user selects the submenu item. To find a PopupMenu object associated with a submenu item, use the SubMenu property.

Separators have only an index. The index for a separator specifies where on the menu the separator is to appear.

To add a new menu item, use the AddMenuItem, AddSeparator, or AddSubmenu methods. To edit or query an existing menu item, use the following methods and properties:

Methods

Delete  

Properties

Application

Caption

Check

Enable

EndSubMenuLevel

HelpString

Index

Label

Macro

Parent

SubMenu

TagString

Type  

 

   Comments?