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

NAME

6       alert - Displays a popup alert box. Allegro game programming library.
7

SYNOPSIS

9       #include <allegro.h>
10
11
12       int alert(const char *s1, *s2, *s3, const char *b1, *b2, int c1, c2);
13

DESCRIPTION

15       Displays a popup alert box, containing three lines of text (s1-s3), and
16       with either one or two buttons. The text for these buttons is passed in
17       `b1'  and  `b2'  (`b2' may be NULL), and the keyboard shortcuts in `c1'
18       and `c2' as ASCII value. Example:
19
20          if (!exists(CONFIG_FILE))
21             alert(CONFIG_FILE, "not found.", "Using defaults.",
22                   "&Continue", NULL, 'c', 0);
23

RETURN VALUE

25       Returns 1 or 2 depending on which button was clicked. If the  alert  is
26       dismissed  by  pressing  ESC when ESC is not one of the keyboard short‐
27       cuts, it treats it as a click on the second button (this is  consistent
28       with the common "Ok", "Cancel" alert).
29
30

SEE ALSO

32       alert3(3), gui_fg_color(3), exgui(3), expackf(3), exspline(3)
33
34
35
36Allegro                          version 4.4.3                        alert(3)
Impressum