> i tried the post handler with the demo program inputall.c. but the
> problem persists. is it possible to get a sample program on how exactly
> the posthandler should be used?
I just took a minute to look at the inputall.c source. Part of the
problem is that not all of the objects are named, so you don't have
access to them in the FD_input data structure. You can fix this by
`cd'ing to the fd subdirectory in DEMOS and pulling `inputall_gui.fd'
into `fdesign'. Add names for the Input objects which do not have
names -- I chose `int_input', `float_input', and `date_input',
respectively (ignoring the FL_SECRET_INPUT, since it doesn't print on
the screen, anyhow). After saving the new GUI file, I added
fl_set_object_posthandler( fd_input->norminput, input_posthandler );
fl_set_object_posthandler( fd_input->int_input, input_posthandler );
fl_set_object_posthandler( fd_input->float_input, input_posthandler );
fl_set_object_posthandler( fd_input->date_input, input_posthandler );
to `inputall.c' right before the call to fl_show_form(), added the
input_posthandler() code, compile, and linked.
It worked as expected.
spl
_________________________________________________
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://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/