#include "xwidgets.h"

Go to the source code of this file.
Data Structures | |
| struct | MessageBox |
Macros | |
| #define | XMESSAGE_DIALOG_H_ |
Enumerations | |
| enum | { INFO_BOX, WARNING_BOX, ERROR_BOX, QUESTION_BOX, SELECTION_BOX, ENTRY_BOX } |
Functions | |
| Widget_t * | open_message_dialog (Widget_t *w, int style, const char *title, const char *message, const char *choices) |
| open_message_dialog - open a non blocking dialog window, lines in message chould be separated by the character "|" choices for the SELECTION_BOX should be separated as well with the character "|". message and/or choices could be NULL when not needed. To fetch the response of a dialog, connect to the dialog_callback supported "styles" been INFO_BOX - a message dialog display a info text WARNING_BOX - a message dialog display a warning ERROR_BOX - a message dialog display a error message QUESTION_BOX - a no/yes dialog message SELECTION_BOX - a dialog to select between multiple options ENTRY_BOX - a dialog to get text input More... | |
| #define XMESSAGE_DIALOG_H_ |
Definition at line 24 of file xmessage-dialog.h.
| anonymous enum |
| Enumerator | |
|---|---|
| INFO_BOX | |
| WARNING_BOX | |
| ERROR_BOX | |
| QUESTION_BOX | |
| SELECTION_BOX | |
| ENTRY_BOX | |
Definition at line 32 of file xmessage-dialog.h.
| Widget_t* open_message_dialog | ( | Widget_t * | w, |
| int | style, | ||
| const char * | title, | ||
| const char * | message, | ||
| const char * | choices | ||
| ) |
open_message_dialog - open a non blocking dialog window, lines in message chould be separated by the character "|" choices for the SELECTION_BOX should be separated as well with the character "|". message and/or choices could be NULL when not needed. To fetch the response of a dialog, connect to the dialog_callback supported "styles" been
INFO_BOX - a message dialog display a info text
WARNING_BOX - a message dialog display a warning
ERROR_BOX - a message dialog display a error message
QUESTION_BOX - a no/yes dialog message
SELECTION_BOX - a dialog to select between multiple options
ENTRY_BOX - a dialog to get text input
Definition at line 322 of file xmessage-dialog.c.
References MessageBox::choices, MessageBox::height, MessageBox::icon, MessageBox::lin, MessageBox::message, MessageBox::message_type, MessageBox::response, MessageBox::sel, and MessageBox::width.