Hi,
I've run across some strange behavior when using the
fl_set_oneliner functions. This shows the problem:
-------------------- start code ----------------
#include "forms.h"
int main (int argc, char **argv)
{
FL_FORM *form;
FL_OBJECT *obj;
fl_initialize (&argc, argv, "XForms_test", 0, 0);
form = fl_bgn_form (FL_UP_BOX, 300, 200);
obj = fl_add_button (FL_NORMAL_BUTTON,
10, 10, 100, 40, "Button");
/* These calls generate the error
** "In fl_bgn_form [forms.c 56] You forgot to call fl_end_form"
*/
fl_set_oneliner_font (FL_BOLD_STYLE, FL_NORMAL_SIZE);
fl_set_oneliner_color (FL_BLUE, FL_BLACK);
fl_end_form();
fl_show_form (form, FL_PLACE_GEOMETRY, FL_FULLBORDER, "Xforms");
fl_do_forms();
return(0);
}
---------------- end code ---------------------------
If I call fl_set_oneliner... within an fl_bgn_form/fl_end_form
block, I get an error. If I move the calls to before
fl_bgn_form, the program works fine. Is there a problem, or
is this a known behavior? By the way, this error did not
occur in v0.86.
-bob
-- Robert S. Mallozzi University of Alabama http://cspar.uah.edu/~mallozzir/_________________________________________________ To unsubscribe, send the message "unsubscribe" to xforms-request@bob.usuf2.usuhs.mil or see http://bob.usuf2.usuhs.mil/mailserv/xforms.html XForms Home Page: http://bloch.phys.uwm.edu/xforms List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/