Repository navigation
dos_popupmenu
Dale Fugier edited this page Jul 1, 2026
·
1 revision
Displays a user-defined, context-style popup menu. The popup menu can appear almost anywhere. And, it can be dismissed by either clicking the left or right mouse buttons.
(dos_popupmenu menu-items [item-modes])
menu-items
A list of string representing the menu items. An empty string, or "", will create a menu separator item.
item-modes
A list if numbers identifying the display mode of the corresponding menu items. If omitted, all menu items are enabled. Note, although they must be specified, display modes are ignored for menu separators. The display modes are a follows:
| Value | Description |
|---|---|
| 0 | The menu item is enabled. |
| 1 | The menu item is disabled. |
| 2 | The menu item is checked. |
| 3 | The menu item is disabled and checked. |
The index value of the menu item that was picked. Note, menu separators are not included as part of the returned index value.
nil on cancel or on error.
Command: (setq x '("Line" "" "Circle" "Arc"))
("Line" "" "Circle" "Arc")
Command: (setq y '(0 0 1 2))
(0 0 1 2)
Command: (dos_popupmenu x y)
0
Command: (dos_popupmenu x)
0