Re: XForms: input clearing itself

Steve Lamont (spl@szechuan.ucsd.edu)
Mon, 27 Oct 97 06:04:54 PST

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

> Well I've figured out my previous question about reading a
> file into an input, but I've got one other problem with it. The
> input will clear itself every time I fl_set_input() . Is there any
> way around this? I have tried every type of input and and using
> fl_set_input_cursorpos() , fl_set_input_topline(), and all the other
> options in the manual, but still I can't get the previous text
> entered to remain. What can be done about this?

As I mentioned in a previous posting, there does not appear to be a
mechanism for doing this other than fetching the entire input with
fl_get_input(), copying it to your own buffer, resizing the buffer
appropriately, tacking on what you wish, feeding it back to the
Input object with fl_set_input(), and then blowing away the buffer.

Kinda klugey...

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/