GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  ALERT (3)

NAME

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

CONTENTS

Synopsis
Description
See Also

SYNOPSIS

#include <allegro.h>

int alert(const char *s1, *s2, *s3, const char *b1, *b2, int c1, c2);

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);

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(3), gui_fg_color(3), exgui(3), expackf(3), exspline(3)
Search for    or go to Top of page |  Section 3 |  Main Index


Allegro ALERT (3) version 4.4.2

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.