[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

28. Dialog Boxes

28.1 Dialog Box Format  
28.2 Dialog Box Functions  


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

28.1 Dialog Box Format

A dialog box description is a list.

If the callback of a button is a symbol, then it must name a command. It will be invoked with call-interactively. If it is a list, then it is evaluated with eval.

One (and only one) of the buttons may be nil. This marker means that all following buttons should be flushright instead of flushleft.

The syntax, more precisely:

 
   form         :=  <something to pass to `eval'>
   command      :=  <a symbol or string, to pass to `call-interactively'>
   callback     :=  command | form
   active-p     :=  <t, nil, or a form to evaluate to decide whether this
                    button should be selectable>
   name         :=  <string>
   partition    :=  'nil'
   button       :=  '['  name callback active-p ']'
   dialog       :=  '(' name [ button ]+ [ partition [ button ]+ ] ')'


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

28.2 Dialog Box Functions

Function: popup-dialog-box dbox-desc
This function pops up a dialog box. dbox-desc describes how the dialog box will appear (see section 28.1 Dialog Box Format).

See section 24.6 Yes-or-No Queries, for functions to ask a yes/no question using a dialog box.


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by XEmacs Webmaster on August, 3 2012 using texi2html