1do_dialog(3)                    Allegro manual                    do_dialog(3)
2
3
4

NAME

6       do_dialog  -  Basic  dialog  manager function. Allegro game programming
7       library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       int do_dialog(DIALOG *dialog, int focus_obj);
14

DESCRIPTION

16       The basic dialog manager function. This displays a dialog (an array  of
17       dialog  objects,  terminated  by one with a NULL dialog procedure), and
18       sets the input focus to the focus_obj (-1 if you don't want anything to
19       have  the  focus).  It interprets user input and dispatches messages as
20       they are required, until one of the dialog procedures tells it to close
21       the  dialog,  at  which  point  it returns the index of the object that
22       caused it to exit, or until ESC is pressed, at which point  it  returns
23       -1.
24
25

SEE ALSO

27       popup_dialog(3), init_dialog(3), centre_dialog(3), set_dialog_color(3),
28       find_dialog_focus(3), excustom(3), exgui(3), exrgbhsv(3)
29
30
31
32Allegro                          version 4.2.3                    do_dialog(3)
Impressum