flx_show_dialog implements a set of popup dialogs as an alternative to some of the Xforms goodies. I have five types of dialogs available:

To use flx_show_dialog(), just compile flx_show_dialog.c, and then link flx_show_dialog.o into your code. To call the dialogs in your code, add the line

status = flx_show_dialog("type", "message_string");

where type is one of the five listed above, and message is the text you want to put in the dialog box. status (int) is the return value. All dialogs except question have only an "Ok" button, and return the value 1. A question dialog has "Ok" and "Cancel" buttons, and returns 1 for "Ok", and 0 for "Cancel".

flx_show_dialog is flexible. You can use the functions the following functions to set the dialog attributes:

Use the standard Xforms variables for the arguments, e.g. FL_RED, FL_BOLD_STYLE. Just call these functions before the call to flx_show_dialog() in your code.

error

info

question

message

warning