2 @c This is part of the SXEmacs Lisp Reference Manual.
3 @c Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
4 @c Copyright (C) 2005 Sebastian Freundt <hroptatyr@sxemacs.org>
5 @c See the file lispref.texi for copying conditions.
6 @setfilename ../../info/dialog.info
8 @node Dialog Boxes, Toolbar, Menus, Top
14 * Dialog Box Functions::
17 @node Dialog Box Format
18 @section Dialog Box Format
20 A dialog box description is a list.
24 The first element of the list is a string to display in the dialog box.
26 The rest of the elements are descriptions of the dialog box's buttons.
27 Each one is a vector of three elements:
30 The first element is the text of the button.
32 The second element is the @dfn{callback}.
34 The third element is @code{t} or @code{nil}, whether this button is
39 If the callback of a button is a symbol, then it must name a command.
40 It will be invoked with @code{call-interactively}. If it is a list,
41 then it is evaluated with @code{eval}.
43 One (and only one) of the buttons may be @code{nil}. This marker means
44 that all following buttons should be flushright instead of flushleft.
46 The syntax, more precisely:
49 form := <something to pass to `eval'>
50 command := <a symbol or string, to pass to `call-interactively'>
51 callback := command | form
52 active-p := <t, nil, or a form to evaluate to decide whether this
53 button should be selectable>
56 button := '[' name callback active-p ']'
57 dialog := '(' name [ button ]+ [ partition [ button ]+ ] ')'
61 @node Dialog Box Functions
62 @section Dialog Box Functions
64 @defun popup-dialog-box dbox-desc
65 This function pops up a dialog box. @var{dbox-desc} describes how the
66 dialog box will appear (@pxref{Dialog Box Format}).
69 @xref{Yes-or-No Queries}, for functions to ask a yes/no question using