Text Field Observation

dunbarx at aol.com dunbarx at aol.com
Mon Oct 22 19:54:36 EDT 2012


You are not nuts, LC is. This is an ongoing bugaboo. The workaround Mark suggested is effective, but the natives are clamoring for more sensible native behavior.

Craig Newman

-----Original Message-----
From: Mark Schonewille <m.schonewille at economy-x-talk.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Mon, Oct 22, 2012 5:54 pm
Subject: Re: Text Field Observation

Hi Cal,

In LiveCode, text wraps around white space and specific other characters. As 
soon as yu type a space or tab or even a dash, it will wrap. If the first word 
of a line is longer than the width of a field, it won't wrap. You can hardwrap a 
word by checking the formattedWidth of char 1 to x of word y. If the 
formattedWidth is greater than the width of the field, then you could put a 
space before char x to force the wrap.

Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour 
spaces. http://www.color-converter.com

On 22 okt 2012, at 23:27, Cal Horner wrote:

> I've noticed recently that a text field set up to handle text (naturally)
> has an odd attribute.
> As long as the user is typing normally, that is words with spaces between
> each word when the sentence reaches the right boundary of the text field I
> get text wrap.
> But when I take it in my dottery ol' head to hold any key down and let the
> character move along the line to the end of the text field  there is no text
> wrap. The line of characters disappears into the never-never. Check it out.
> If you put a space in that string of characters you then get text wrap.
> Now, this seems odd to me. My logic says when you have the text wrap set it
> should wrap back to the next line and continue, until you left your finger
> off the key.
> How wrong am I? Or has the code been left out, by mistake, when so many new
> features are added?
> Has anyone else run into this oddity or should I just stop worrying about it
> and get a day job?
> Cal

use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 


More information about the Use-livecode mailing list