Re: XForms: CR binding to input field

Steve Lamont (spl@szechuan.ucsd.edu)
Tue, 12 Aug 97 07:07:28 PDT

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

> I wonder if this is a 'feature' of XForms or Xlib*, I have an
> input widget, if I press ENTER the callback gets called and the
> action is performed, but if I press ENTER again on the same widget
> without changing it, nothing happens. It seems internally the
> callback isn't dispatched because nothing has changed since last
> time. Is there a way to disable this 'optimization' ? I would like
> to get my callback called even if the text hasn't changed.

There are several return modes for the Input Object (they're actually
not Widgets -- a minor quibble, I know):

FL_RETURN_END_CHANGED,
FL_RETURN_CHANGED,
FL_RETURN_END, and
FL_RETURN_ALWAYS

Refer to the manual discussion of fl_set_input_return() for the use of
each. They are discussed in the section on Input Objects.

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/