XForms: fl_set_input_filter()

The Heinekens (timiny@intplsrv.net)
Wed, 25 Mar 1998 13:42:02 -0600

# To subscribers of the xforms list from "The Heinekens" <timiny@intplsrv.net> :

I am trying to use an input filter on several input boxes. The filter seems
to work fine except that I can no longer use tab or return to move between
input boxes. Actually, tab and return still work but I have to do it twice
before it moves the focus to the next field. The first time I type tab or
return, the bell rings for invalid input. The second time, the callback is
called and focus goes to the next input box.

Here is one of the filters I am using:
static int myfilter(FL_OBJECT *obj, const char* old, const char* new, int
int valid;
switch(c) {
case '1' : case '2' : case '3' : case '-' : case 'X': {
valid = FL_VALID;
default : {
return valid;

Any idea of what stupid thing I am not doing :-)
Thanks in advance,
C. Heineken

To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/