diff options
| author | Luc Teirlinck | 2005-05-05 23:05:00 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2005-05-05 23:05:00 +0000 |
| commit | 53420faaaf930347bd61bd9b4e6941a3a6df2e5d (patch) | |
| tree | f8722449dd4a3e959da730ebabe46eea0facda4f /lispref/frames.texi | |
| parent | 342ef03d5b60f9036f1f4b1bba5df62f8d4ce64f (diff) | |
| download | emacs-53420faaaf930347bd61bd9b4e6941a3a6df2e5d.tar.gz emacs-53420faaaf930347bd61bd9b4e6941a3a6df2e5d.zip | |
(Pop-Up Menus): Complete description of `x-popup-menu'.
(Dialog Boxes): Complete description of `x-popup-dialog'.
Diffstat (limited to 'lispref/frames.texi')
| -rw-r--r-- | lispref/frames.texi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lispref/frames.texi b/lispref/frames.texi index d56c071ad1e..e5db70c1107 100644 --- a/lispref/frames.texi +++ b/lispref/frames.texi | |||
| @@ -1402,6 +1402,13 @@ Each item should normally be a cons cell @code{(@var{line} . @var{value})}, | |||
| 1402 | where @var{line} is a string, and @var{value} is the value to return if | 1402 | where @var{line} is a string, and @var{value} is the value to return if |
| 1403 | that @var{line} is chosen. An item can also be a string; this makes a | 1403 | that @var{line} is chosen. An item can also be a string; this makes a |
| 1404 | non-selectable line in the menu. | 1404 | non-selectable line in the menu. |
| 1405 | |||
| 1406 | If the user gets rid of the menu without making a valid choice, for | ||
| 1407 | instance by clicking the mouse away from a valid choice or by typing | ||
| 1408 | keyboard input, then this normally results in a quit and | ||
| 1409 | @code{x-popup-menu} does not return. But if @var{position} is a mouse | ||
| 1410 | button event (indicating that the user invoked the menu with the | ||
| 1411 | mouse) then no quit occurs and @code{x-popup-menu} returns @code{nil}. | ||
| 1405 | @end defun | 1412 | @end defun |
| 1406 | 1413 | ||
| 1407 | @strong{Usage note:} Don't use @code{x-popup-menu} to display a menu | 1414 | @strong{Usage note:} Don't use @code{x-popup-menu} to display a menu |
| @@ -1470,6 +1477,10 @@ window don't matter; only the frame matters. | |||
| 1470 | In some configurations, Emacs cannot display a real dialog box; so | 1477 | In some configurations, Emacs cannot display a real dialog box; so |
| 1471 | instead it displays the same items in a pop-up menu in the center of the | 1478 | instead it displays the same items in a pop-up menu in the center of the |
| 1472 | frame. | 1479 | frame. |
| 1480 | |||
| 1481 | If the user gets rid of the dialog box without making a valid choice, | ||
| 1482 | for instance using the window manager, then this produces a quit and | ||
| 1483 | @code{x-popup-dialog} does not return. | ||
| 1473 | @end defun | 1484 | @end defun |
| 1474 | 1485 | ||
| 1475 | @node Pointer Shapes | 1486 | @node Pointer Shapes |