|
void | fl_alert (const char *fmt,...) |
| Shows an alert message dialog box. More...
|
|
int | fl_ask (const char *fmt,...) |
| Shows a dialog displaying the fmt message, this dialog features 2 yes/no buttons. More...
|
|
void | fl_beep (int type) |
| Emits a system beep message. More...
|
|
int | fl_choice (const char *fmt, const char *b0, const char *b1, const char *b2,...) |
| Shows a dialog displaying the printf style fmt message, this dialog features up to 3 customizable choice buttons. More...
|
|
int | fl_choice_n (const char *fmt, const char *b0, const char *b1, const char *b2,...) |
| Like fl_choice() but with extended (negative) return values. More...
|
|
int | fl_color_chooser (const char *name, double &r, double &g, double &b, int cmode) |
| Pops up a window to let the user pick an arbitrary RGB color. More...
|
|
int | fl_color_chooser (const char *name, uchar &r, uchar &g, uchar &b, int cmode) |
| Pops up a window to let the user pick an arbitrary RGB color. More...
|
|
char * | fl_dir_chooser (const char *message, const char *fname, int relative) |
| Shows a file chooser dialog and gets a directory. More...
|
|
char * | fl_file_chooser (const char *message, const char *pat, const char *fname, int relative) |
| Shows a file chooser dialog and gets a filename. More...
|
|
void | fl_file_chooser_callback (void(*cb)(const char *)) |
| Set the file chooser callback. More...
|
|
void | fl_file_chooser_ok_label (const char *l) |
| Set the "OK" button label. More...
|
|
const char * | fl_input (const char *fmt, const char *defstr,...) |
| Shows an input dialog displaying the fmt message. More...
|
|
void | fl_message (const char *fmt,...) |
| Shows an information message dialog box. More...
|
|
void | fl_message_hotspot (int enable) |
| Sets whether or not to move the common message box used in many common dialogs like fl_message(), fl_alert(), fl_ask(), fl_choice(), fl_input(), fl_password() to follow the mouse pointer. More...
|
|
int | fl_message_hotspot (void) |
| Gets whether or not to move the common message box used in many common dialogs like fl_message(), fl_alert(), fl_ask(), fl_choice(), fl_input(), fl_password() to follow the mouse pointer. More...
|
|
Fl_Widget * | fl_message_icon () |
| Gets the Fl_Box icon container of the current default dialog used in many common dialogs like fl_message(), fl_alert(), fl_ask(), fl_choice(), fl_input(), fl_password() More...
|
|
void | fl_message_title (const char *title) |
| Sets the title of the dialog window used in many common dialogs. More...
|
|
void | fl_message_title_default (const char *title) |
| Sets the default title of the dialog window used in many common dialogs. More...
|
|
const char * | fl_password (const char *fmt, const char *defstr,...) |
| Shows an input dialog displaying the fmt message. More...
|
|
|
static void(* | Fl::error )(const char *,...) = ::error |
| FLTK calls Fl::error() to output a normal error message. More...
|
|
static void(* | Fl::fatal )(const char *,...) = ::fatal |
| FLTK calls Fl::fatal() to output a fatal error message. More...
|
|
const char * | fl_cancel = "Cancel" |
| string pointer used in common dialogs, you can change it to another language
|
|
const char * | fl_close = "Close" |
| string pointer used in common dialogs, you can change it to another language
|
|
const char * | fl_no = "No" |
| string pointer used in common dialogs, you can change it to another language
|
|
const char * | fl_ok = "OK" |
| string pointer used in common dialogs, you can change it to another language
|
|
const char * | fl_yes = "Yes" |
| string pointer used in common dialogs, you can change it to another language
|
|
static void(* | Fl::warning )(const char *,...) = ::warning |
| FLTK calls Fl::warning() to output a warning message. More...
|
|
int fl_choice_n |
( |
const char * |
fmt, |
|
|
const char * |
b0, |
|
|
const char * |
b1, |
|
|
const char * |
b2, |
|
|
|
... |
|
) |
| |
Like fl_choice() but with extended (negative) return values.
This function can return negative values as described below whereas fl_choice() only returns "button values" (0, 1, 2).
With fl_choice_n() you can arrange the buttons in a way that any button can be the standard "cancel" button because Escape and closing the window with the close button can be distinguished from button return codes.
Negative values are always "special" and should be considered like "cancel".
The special value -3
means that the dialog was blocked (not executed).
Other than that both functions are the same.
- See also
- fl_choice()
- Since
- 1.3.8
- Parameters
-
[in] | fmt | can be used as an sprintf-like format and variables for the message text |
[in] | b0 | text label of button 0 |
[in] | b1 | text label of button 1 (can be 0) |
[in] | b2 | text label of button 2 (can be 0) |
- Return values
-
-3 | if another dialog box is still open (the dialog was blocked) |
-2 | if the dialog window was closed by clicking the close button |
-1 | if the dialog was closed by hitting Escape |
0 | if the first button with b0 text is pushed |
1 | if the second button with b1 text is pushed |
2 | if the third button with b2 text is pushed |
void fl_message_title |
( |
const char * |
title | ) |
|
Sets the title of the dialog window used in many common dialogs.
This window title
will be used in the next call of one of the common dialogs like fl_message(), fl_alert(), fl_ask(), fl_choice(), fl_input(), fl_password().
The title
string is copied internally, so that you can use a local variable or free the string immediately after this call. It applies only to the next call of one of the common dialogs and will be reset to an empty title (the default for all dialogs) after that call.
- Note
- #include <FL/fl_ask.H>
- Parameters
-
[in] | title | window label, string copied internally |
void fl_message_title_default |
( |
const char * |
title | ) |
|
void(* Fl::error)(const char *format,...) = ::error |
|
static |
FLTK calls Fl::error() to output a normal error message.
The default version on Windows displays the error message in a MessageBox window.
The default version on all other platforms prints the error message to stderr.
You can override the behavior by setting the function pointer to your own routine.
Fl::error() means there is a recoverable error such as the inability to read an image file. The default implementation returns after displaying the message.
- Note
- #include <FL/Fl.H>
void(* Fl::fatal)(const char *format,...) = ::fatal |
|
static |
FLTK calls Fl::fatal() to output a fatal error message.
The default version on Windows displays the error message in a MessageBox window.
The default version on all other platforms prints the error message to stderr.
You can override the behavior by setting the function pointer to your own routine.
Fl::fatal() must not return, as FLTK is in an unusable state, however your version may be able to use longjmp or an exception to continue, as long as it does not call FLTK again. The default implementation exits with status 1 after displaying the message.
- Note
- #include <FL/Fl.H>
void(* Fl::warning)(const char *format,...) = ::warning |
|
static |
FLTK calls Fl::warning() to output a warning message.
The default version on Windows returns without printing a warning message, because Windows programs normally don't have stderr (a console window) enabled.
The default version on all other platforms prints the warning message to stderr.
You can override the behavior by setting the function pointer to your own routine.
Fl::warning() means that there was a recoverable problem, the display may be messed up, but the user can probably keep working - all X protocol errors call this, for example. The default implementation returns after displaying the message.
- Note
- #include <FL/Fl.H>