| Henry,
Realize that WPS PLUS style word-wrap will not be possible on an FMS form.
I.e., you will not be able to push words off the end of one line and onto
the next while typing in insert mode. FMS doesn't support anything like
this and ALL-IN-1 doesn't have any control of a field until the user exits
it.
That said, you could provide some functionality by allowing words to wrape
off the end of one line and onto the next while the user is entering text
for the first time.
It might look like this (this is untested code).
;;line1;; (seventy bytes long, autotab attrib.)
/post='
.if oa$field_term_name eqs "down" or oa$field_term_name eqs "tab" and
line1:1:70 nes "" and line2 eqs "" then
get #temp = line1:h\\
get_token #temp, #temp2, " "\\
get line1 = #temp:h\\
get line2 = #temp2:h'
On second look, this is still going to be pretty ugly. If a whole word
just happened to finish in position 70 this code will still move it to
the next line. An even greater problem is that there is no way to
position the cursor in LINE2 after the text which has already been moved
down there. The user would have to arrow over to the end of the already
entered text.
I suppose you could have a bunch of one-character fields adjacent to
each other with autotab set on each and then do logic to move characters
around to simulate word-wrap, but that would be a lot of trouble.
Maybe someone else has a better idea.
Joe
|
| There was a DECUS package that did this (aka free if you belong to
DECUS). It was called something like Baby-ed or Baby Ed. I don't
recall all the details, but it simulated an editor for a multi field
form. Perhaps somebody else can provide more information.
Cheers, Dan'l
|