The pull-down, (***POPn) shortcut, and cursor (***POP0) menus are displayed as cascading menus, also known as walking or hierarchical menus. Thus, they allow logical layout of menus without swapping menu areas. The cursor menu can provide quick access to often-used menu items such as object snap modes. Pull-down and cursor menu items are similar to items in other menu sections, and you define menu macros in a similar way.
A pull-down menu can contain up to 999 menu items. A cursor menu can contain up to 499 menu items. Both limits include all menus in the hierarchy. If menu items in the menu file exceed these limits, AutoCAD LT ignores the extra items. If a pull-down or cursor menu is taller than the available space in the graphics area, it is truncated to fit on the screen.
Pull-down menus are always pulled down from the menu bar, but the cursor menu is always displayed at or near the crosshairs in the graphics area. The syntax for both Pop menu sections is the same except that the cursor menu title is not included in the menu bar. The cursor menu title is not displayed at all, but you must still enter a dummy title. Access to the cursor menu is through the $P0=* menu command, which can be issued by another menu item (such as a Buttons section menu item). While the cursor menu is active, the menu bar is not available.
The POPn menu sections control the pull-down menus and the cursor menu. POP0 controls the cursor menu; POP1 through POP16 control the active pull-down menus for the menu bar.
The menu bar and pull-down and cursor menus are turned off during the following commands:
Note: If no active pull-down menus are defined (POP1-POP16), the cursor menu (POP0) does not function.
AutoCAD LT scans for POPn menu sections while loading each menu file. For the POP1 through POP16 menu sections it constructs a menu bar containing the titles of those sections. If no POPn sections are defined, AutoCAD LT inserts default File and Edit menus.
The following example illustrates the syntax that is used to create a pull-down or cursor menu.
***POP2
**EDIT
ID_MnEdit [&Edit]
ID_U [&Undo\tCtrl+Z]_u
ID_Redo [&Redo\tCtrl+Y]^C^C_redo
[--]
ID_Cutclip [Cu&t\tCtrl+X]'_cutclip
ID_Copyclip [&Copy\tCtrl+C]'_copyclip
ID_Copylink [Copy &Link]^C^C_copylink
ID_Pasteclip
[&Paste\tCtrl+V]'_pasteclip
ID_Pastesp [Paste &Special...]^C^C_pastespec
ID_Erase [Cle&ar\tDel]^C^C_erase
[--]
ID_Links
[&OLE Links...]^C^C_olelinks
Creating Shortcut Menus
Pull-Down and Right-Click Menu Label Syntax
Pull-Down Menu Bar Titles
Cascading Submenus
Separation of Menu Item Labels
Display Control of Menu Item Labels
Referencing a Pull-Down or Cursor Submenu
Menu Swapping