> Is there a way I can load a file to a multiline input?
> Something similar to fl_load_browser()? Or will I have to read the
> file line by line, then add each line to the input getting and
> resetting the cursor position each time? Thanks for any help :).
There's not an exact equivalent but you can use fl_set_input() with
text separated by newlines. Just read in the entire file to a buffer
and feed it to fl_set_input().
Probably the easiest way to do what I think you want to do is to
memory map the file using the mmap() function, feed the pointer handed
to you by mmap() to fl_set_input(), then unmap and close the file.
Kind of a hack but it should work.
There probably ought to be a more explicit way to do this. There
probably ought to also be a way to arbitrarily add text to an Input
field, which, as far as I can tell, there currently is not. TC?
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/