Function Entry: DOSPOPUPMENU

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: DOSPOPUPMENU

Name

`dospopupmenu`

Class

BricsCAD DOSLib Function

Syntax

(dos_popupmenu menuitems [itemmodes])

Arguments and Values

Arguments are described in the vendor page; see Source Notes.

Description

Shows a popup menu at actual cursor (mouse) position on screen. The user can dismiss the menu by ESCAPE key or clicking anywhere outside the menu. menuitems : list of strings, specifying the menu item labels; an empty string "" creates a separator item itemmodes : optional argument; list of integers specifying the item state for each menu item 0 enabled 1 disabled 2 checked, enabled 3 checked, disabled each menu item defaults to state 0 (enabled, not checked) Return : the index of selected item, or NIL on error or escaped menu; Note : separator items do not count for the item indices ! Examples : (setq items '("Select" "" "First Entity" "Second Entity")) (setq modes '(0 0 3 0)) (dospopupmenu items modes)

Return Values

Vendor-defined; see Source Notes.

Availability

  • AutoCAD 2026: not documented.
  • BricsCAD V26: documented.
  • Status: BricsCAD-only.

Source Notes