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:
flx_set_dialog_lcol()
. Takes one argument to set the label
color.
flx_set_dialog_color()
. Takes two arguments, to set the
dialog buttons inactive and active colors.
flx_set_dialog_bgcolor()
. Takes one argument, to set the
dialog background color.
flx_set_dialog_font()
. Takes two arguments, to set the
font style and size.
FL_RED,
FL_BOLD_STYLE
. Just call these functions before the call
to flx_show_dialog()
in your code.
error
info
question
message
warning