AW: Text Field Observation

Paul Dupuis paul at researchware.com
Tue Oct 23 08:32:05 EDT 2012


LC field should wrap text like MS-Word or Open Office Writer or the
majority of word processors out there. Namely, a continuous character
run gets wrapped at the character that would exceed the field width (or
at the margins in the word processors) and white space between a wrapped
"word" and the next word places the next word on a new line. Open you
favorite word processor and try it out.

If you think of the sheer number of people out there who use some brand
of word processor (whether Pages, Word, Writer, or whatever),
replicating the wrapping behavior of those tools presents the most
consistent behavior.

On 10/23/2012 3:16 AM, Tiemo Hollmann TB wrote:
> Wouldn't that make a word processor necessary? You can't wrap words just
> because of the length of a field without respect to the grammar. Do other
> programming languages have this capability as a native feature?
> Tiemo
>
>> -----Ursprüngliche Nachricht-----
>> Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im
>> Auftrag von dunbarx at aol.com
>> Gesendet: Dienstag, 23. Oktober 2012 01:55
>> An: use-livecode at lists.runrev.com
>> Betreff: Re: Text Field Observation
>>
>> Cal.
>>
>>
>> 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
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>

-- 
Paul Dupuis
Cofounder
Researchware, Inc.
http://www.researchware.com/
http://www.twitter.com/researchware
http://www.facebook.com/researchware
http://www.linkedin.com/company/researchware-inc





More information about the Use-livecode mailing list