Page 258 Table of Contents Index Page 260
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E



CHAPTER 25. MENU FACILITIES

drawer is a function that takes two arguments, stream and type, draws the contents of the menu.
It has dynamic extent.

x-position and y-position are the requested x and y positions of the menu. They may be nil,
meaning that the position is unspecified.

If leave-menu-visible is true, the window will not be deexposed once the selection has been
made. The default is false, meaning that the window will be deexposed once the selection has
been made.

default-presentation is used to identify the presentation that the mouse is pointing to when the
menu comes up.

cache, unique-id, id-test, cache-value, and cache-test are as for menu-choose.

=> draw-standard-menu stream presentation-type items default-item &key item-printer max-width
max-height n-rows n-columns inter-column-spacing inter-row-spacing cell-align-x cell-align-y
[Function]
draw-standard-menu is the function used by CLIM to draw the contents of a menu, unless the
current frame manager determines that host window toolkit should be used to draw the menu
instead. stream is the stream onto which to draw the menu, presentation-type is the presentation
type to use for the menu items (usually menu-item), and item-printer is a function used to draw
each item. item-printer defaults to print-menu-item.

items, default-item, max-width, max-height, n-rows, n-columns, inter-column-spacing, inter-row-
spacing
, cell-align-x, and cell-align-y are as for menu-choose

=> print-menu-item menu-item &optional stream [Function]
Given a menu item menu-item, displays it on the stream stream. This is the function that menu-
choose
uses to display menu items if no printer is supplied.

=> menu-item-value menu-item [Function]
Returns the value of the menu item menu-item, where the format of a menu item is described
under menu-choose. If menu-item is not a menu item, the result is unspecified.

=> menu-item-display menu-item [Function]
Returns the display object of the menu item menu-item, where the format of a menu item is
described under menu-choose. If menu-item is not a menu item, the result is unspecified.

=> menu-item-options menu-item [Function]
Returns the options of the menu item menu-item, where the format of a menu item is described
under menu-choose. If menu-item is not a menu item, the result is unspecified.

=> with-menu (menu &optional associated-window &key (deexpose t)) &body body [Macro]
Binds menu to a "temporary" window, exposes the window on the same screen as the associated-


Page 258 Table of Contents Index Page 260
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E