Re: XForms: problem with the input box

Steve Lamont (spl@szechuan.ucsd.edu)
Wed, 9 Sep 98 12:30:26 PDT

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> i tried the changes suggested. but the problem persists. i am giving
> the codes of inputall_gui.c and inputall.c below. i would like to know
> if any changes are to be made.

What about `inputall_gui.h'? I presume that got fixed as well.

I tested the code you sent, modulo the missing `inputall_gui.h', which
I hand edited as follows,

#ifndef FD_input_h_
#define FD_input_h_
/* Header file generated with fdesign. */

/**** Callback routines ****/

extern void input_cb(FL_OBJECT *, long);
extern void done_cb(FL_OBJECT *, long);
extern void hide_show_cb(FL_OBJECT *, long);


/**** Forms and Objects ****/

typedef struct {
FL_FORM *input;
void *vdata;
long ldata;
FL_OBJECT *norminput;
FL_OBJECT *float_input;
FL_OBJECT *date_input;
FL_OBJECT *int_input;
FL_OBJECT *multiinput;
FL_OBJECT *report;
} FD_input;

extern FD_input * create_form_input(void);

#endif /* FD_input_h_ */

and it works for me.

Either there's something wrong with the way you're building the
application, there's some other problem in your installation, or I'm
not understanding you correctly.

Would someone else on the list who has experienced the problem please
test my hack and report whether it works?

> also in fdesign in the attributes menu when any thing is added to the
> object name or callback fields i get messages like.
>
> Invalid C Identifier Specified for Object Name
> float_input

This sounds like a glibc problem to me. Are you running Linux, by any
chance? If so, check the archives (URL shown below). There are
library strangenesses that interact with

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/