> I see the problem now - it's when the last word in a line is right up
> to the edge
> 
> - I guess you'll have to trick it with a behavior
> (force a hard-break space or something like that?)

I'm experimenting now with various manual ways of breaking the lines, and my
code is getting pretty hairy to fix what seemed at first like a simple
problem. I started by trying to have lingo trap spacebar keystrokes that
occur near the end of a line (or start of an improperly broken line) using
charPosToLoc and replace the usual typed SPACE with SPACE & RETURN. This
wraps correctly at first but it 1) Doesn't advance the blinking cursor, and
2) inserts a hard line break that causes problems if you now go back to line
1 and start inserting words.

Right now what I'm playing around with is trapping all keystrokes to the
field and manually reformatting the text in a new field on each keystroke.
Every time a user hits a key, it's added to an offscreen field that contains
no RETURNS and then that field's contents are copied to the onscreen field
one manually-broken line at a time with hard RETURNs. It's not ideal and I
haven't finished testing all the consequences of doing this. Fortunately my
field is only 5 lines.

Also, does anyone know the best way to place the cursor in a field using
lingo? The only way I have found so far is to set the 'selection' property
of the field to an array of two equal numbers, such as [2,2].

-Adam

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to