logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Description

       Displays  a  popup alert box, containing three lines of text (s1-s3), and with either one or two buttons.
       The text for these buttons is passed in `b1' and `b2' (`b2' may be NULL), and the keyboard  shortcuts  in
       `c1' and `c2' as ASCII value. Example:

          if (!exists(CONFIG_FILE))
             alert(CONFIG_FILE, "not found.", "Using defaults.",
                   "&Continue", NULL, 'c', 0);

Name

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

Return Value

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

See Also

alert3(3alleg4), gui_fg_color(3alleg4), exgui(3alleg4), expackf(3alleg4), exspline(3alleg4)

Allegro                                           version 4.4.3                                   alert(3alleg4)

Synopsis

#include<allegro.h>intalert(constchar*s1,*s2,*s3,constchar*b1,*b2,intc1,c2);

See Also