Re: XForms: callback's

Steve Lamont (spl@szechuan.ucsd.edu)
Wed, 15 Jul 98 19:07:46 PDT

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

> I have an input field which it's callback will take the contents of the
> field and check to see if it can match it within a file. If it doesn't
> match.. I have it so that it displays a fl_set_oneliner() with an error
> message. Now.. how do I make it so that it will not leave this input field
> for the next one untill the input is a valid one?

I tried it and it worked as expected for me. The only thing which
works in an unexpected manner is if you don't set FL_RETURN_END then
if the cursor is in the input object and you hit return without making
a change, then the focus moves on to the next object. Setting
FL_RETURN_END with fl_set_input_return() fixes that.

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/