Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

fl_ask.h File Reference

More...

#include "Enumerations.h"
#include "Fl_Font.h"
#include "Fl_Style.h"

Go to the source code of this file.

Enumerations

enum  BeepTypes {
  FL_BEEP_DEFAULT = 0, FL_BEEP_MESSAGE, FL_BEEP_ERROR, FL_BEEP_QUESTION,
  FL_BEEP_PASSWORD, FL_BEEP_NOTIFICATION
}
 BeepTypes.


Functions

FL_API void fl_beep (int type=FL_BEEP_DEFAULT)
 Produces a short sound notification (beep). More...

FL_API void fl_message (const char *msg,...)
 Shows a formatted information notice. More...

FL_API void fl_alert (const char *msg,...)
 Shows a formatted warning notice. More...

FL_API int fl_ask (const char *msg,...)
 Shows a formatted message and asks for confirmation. More...

FL_API int fl_choice (const char *q, const char *b0, const char *b1, const char *b2,...)
 Shows a formatted message and asks what to do. More...

FL_API const char * fl_input (const char *label, const char *deflt=0,...)
 Shows a formatted message and waits for the user to enter a text. More...

FL_API const char * fl_password (const char *label, const char *deflt=0,...)
 Shows a formatted message and waits for the user to enter a password. More...


Variables

FL_API Fl_Widget
FL_API Fl_Named_Stylefl_icon_style
FL_API Fl_Named_Stylefl_message_style


Detailed Description

Definition in file fl_ask.h.


Function Documentation

FL_API void fl_alert const char *    msg,
...   
 

Shows a formatted warning notice.

Parameters:
msg  is the message which can contain printf style formatting characters
See also:
fl_message,fl_ask

FL_API int fl_ask const char *    msg,
...   
 

Shows a formatted message and asks for confirmation.

Parameters:
msg  is the message which can contain printf style formatting characters
Returns:
1 if OK was pressed, otherwise 0

FL_API void fl_beep int    type = FL_BEEP_DEFAULT
 

Produces a short sound notification (beep).

Parameters:
type  is the type of the notification

FL_API int fl_choice const char *    q,
const char *    b0,
const char *    b1,
const char *    b2,
...   
 

Shows a formatted message and asks what to do.

The labels of the buttons can be 0.

Parameters:
q  is the message which can contain printf style formatting characters
b0  the label of the first button
b1  the label of the second button
b2  the label of the third button
Returns:
the button number pressed

FL_API const char* fl_input const char *    label,
const char *    deflt = 0,
...   
 

Shows a formatted message and waits for the user to enter a text.

Parameters:
label  is the message which can contain printf style formatting characters
deflt  is the default value for the input widget
Returns:
a pointer to the text, or NULL if the user hit cancel.
See also:
fl_password

FL_API void fl_message const char *    msg,
...   
 

Shows a formatted information notice.

Parameters:
msg  is the message which can contain printf style formatting characters
See also:
fl_alert,fl_ask

FL_API const char* fl_password const char *    label,
const char *    deflt = 0,
...   
 

Shows a formatted message and waits for the user to enter a password.

Parameters:
label  is the message which can contain printf style formatting characters
deflt  is the default value for the input widget
Returns:
a pointer to the text, or NULL if the user hit cancel.
See also:
fl_input


Generated on Thu Jul 31 15:33:46 2003 for eFLTK by doxygen1.2.15