dos_popupmenu
(dos_popupmenu menuitems
[itemmodes])
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))
|
(dos_popupmenu items modes) |
(dos_popupmenu items) |
|
|
|
© Bricsys NV. All rights reserved. |