diff options
| author | Nick Roberts | 2005-05-24 04:29:14 +0000 |
|---|---|---|
| committer | Nick Roberts | 2005-05-24 04:29:14 +0000 |
| commit | 24f8f30b73663e729018eddebd630942e12b46ac (patch) | |
| tree | 68a1771aee1dcd58e95ccdbd974d68ada9b0fe0e | |
| parent | 87944384533f773997a940804ad2ae8e0545d350 (diff) | |
| download | emacs-24f8f30b73663e729018eddebd630942e12b46ac.tar.gz emacs-24f8f30b73663e729018eddebd630942e12b46ac.zip | |
(Dialog Boxes): Descibe new optional argument.
| -rw-r--r-- | lispref/frames.texi | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/lispref/frames.texi b/lispref/frames.texi index 3b43f18e99d..bb3c827fe34 100644 --- a/lispref/frames.texi +++ b/lispref/frames.texi | |||
| @@ -1438,13 +1438,14 @@ the menu keymap as necessary. | |||
| 1438 | 1438 | ||
| 1439 | A dialog box is a variant of a pop-up menu---it looks a little | 1439 | A dialog box is a variant of a pop-up menu---it looks a little |
| 1440 | different, it always appears in the center of a frame, and it has just | 1440 | different, it always appears in the center of a frame, and it has just |
| 1441 | one level and one pane. The main use of dialog boxes is for asking | 1441 | one level and one or more buttons. The main use of dialog boxes is |
| 1442 | questions that the user can answer with ``yes'', ``no'', and a few other | 1442 | for asking questions that the user can answer with ``yes'', ``no'', |
| 1443 | alternatives. The functions @code{y-or-n-p} and @code{yes-or-no-p} use | 1443 | and a few other alternatives. With a single button, they can also |
| 1444 | dialog boxes instead of the keyboard, when called from commands invoked | 1444 | force the user to acknowledge important information. The functions |
| 1445 | by mouse clicks. | 1445 | @code{y-or-n-p} and @code{yes-or-no-p} use dialog boxes instead of the |
| 1446 | 1446 | keyboard, when called from commands invoked by mouse clicks. | |
| 1447 | @defun x-popup-dialog position contents | 1447 | |
| 1448 | @defun x-popup-dialog position contents header | ||
| 1448 | This function displays a pop-up dialog box and returns an indication of | 1449 | This function displays a pop-up dialog box and returns an indication of |
| 1449 | what selection the user makes. The argument @var{contents} specifies | 1450 | what selection the user makes. The argument @var{contents} specifies |
| 1450 | the alternatives to offer; it has this format: | 1451 | the alternatives to offer; it has this format: |
| @@ -1474,6 +1475,10 @@ Dialog boxes always appear in the center of a frame; the argument | |||
| 1474 | @code{x-popup-menu}, but the precise coordinates or the individual | 1475 | @code{x-popup-menu}, but the precise coordinates or the individual |
| 1475 | window don't matter; only the frame matters. | 1476 | window don't matter; only the frame matters. |
| 1476 | 1477 | ||
| 1478 | If @var{header} is non-nil, the frame title for the box is | ||
| 1479 | ``Information'', otherwise it is ``Question''. The former is used | ||
| 1480 | for @code{message-box} (@pxref{The Echo Area}). | ||
| 1481 | |||
| 1477 | In some configurations, Emacs cannot display a real dialog box; so | 1482 | In some configurations, Emacs cannot display a real dialog box; so |
| 1478 | instead it displays the same items in a pop-up menu in the center of the | 1483 | instead it displays the same items in a pop-up menu in the center of the |
| 1479 | frame. | 1484 | frame. |