Line Wrapping and Margins

Peter Brigham MD pmbrig at gmail.com
Mon Sep 27 08:58:20 EDT 2010


On Sep 24, 2010, at 1:57 PM, Michael D Mays wrote:

> Thanks Mark and Craig,
>
> That's what I need.
> Unfortunately that property doesn't show up in the dictionary as a  
> property of a field (only a button) so it makes it a little hard to  
> find. :(
> And the syntax example for formatedWidth some punctuation.
>
> Michael

I added a user comment on this to the dictionary entry for  
formattedWidth.

-- Peter

Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig



> On Sep 24, 2010, at 12:26 PM, Mark Schonewille wrote:
>
>> Michael,
>>
>> That should be something like this:
>>
>> if the formattedWidth of word 1 to x of line y of fld z > the width  
>> of fld z - item 1 of the margins of fld z - item 3 of the margins  
>> of fld z then
>> put cr after word x of line y of fld z
>> end if
>>
>> On 24 sep 2010, at 19:05, Michael D Mays wrote:
>>
>>> Hi,
>>>
>>> How can I tell where (at what position or character) a line wraps  
>>> in a  field?
>>>
>>> If I have a word which has a length greater than the width of the  
>>> field it is contained in, how can I get it to wrap anywhere other  
>>> than at the end of the word?




More information about the use-livecode mailing list