| Allegro CL version 10.0 Unrevised from 9.0 to 10.0. 9.0 version |
Arguments: title choice-list &key stream allow-multiple initial-value select-all on-print on-change width height dialog-exterior-box topmost
Displays a dialog with Yes, No, and Cancel buttons and a single or
multiple item list widget. Two values are returned, the selected value
(or the list of selected values if allow-multiple
is true) and :yes
or :no
or
nil
as Yes, No, or Cancel is
clicked. (Clicking the close box on the dialog is equivalent to
clicking Cancel.)
The required arguments are title, which must be a
string or nil
and provides the title of the
dialog (no title for nil
), and
choice-list, which must be a list. The items of
choice-list will be displayed in the list widget
on the dialog.
The keyword arguments are:
nil
or a function or function name. If
true, it is used as the on-change event handler for the
item-list of the yes-no-or-cancel-list dialog. The function will
therefore be called as the user highlights each choice in the
dialog. This may be handy for showing a help message for each
choice. The function should take the three arguments widget,
new-value, and old-value (as usual with an on-change handler), and should
always return true (since returning nil
would prevent the user from successfully
selecting a choice). The default value of
on-change is nil
, which
causes an internal on-change handler to be used. This argument was
added in the 7.0 release.
See also y-or-n-dialog and ask-user-for-choice-from-list.
Copyright (c) 1998-2015, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 10.0. This page was not revised from the 9.0 page.
Created 2015.5.21.
| Allegro CL version 10.0 Unrevised from 9.0 to 10.0. 9.0 version |