line wraps

-= JB =- sundown at nwrain.net
Mon Jun 11 04:54:30 EDT 2007


Hi Ken,

Thanks for the info!

-=>JB<=-


On Jun 11, 2007, at 12:14 AM, Ken Ray wrote:

> On Sun, 10 Jun 2007 23:11:12 -0700, -= JB =- wrote:
>
>>
>> On Jun 10, 2007, at 10:43 PM, Ken Ray wrote:
>>
>>> Depending on the line you want to check, you can use the
>>> 'formattedText' property - which will return you the data from the
>>> field with hard returns where it has wrapped naturally.
>>
>>> Ken Ray
>>> Sons of Thunder Software, Inc.
>>> Email: kray at sonsothunder.com
>>> Web Site: http://www.sonsothunder.com/
>>
>>    Hi Ken,
>>
>>    Thanks for taking the time to reply but the problem
>>    is I want to know where it wraps without using the
>>    hard return.  So when a line wraps automatically &
>>    it does not have a return I want to know what char
>>    is the last char on the line before it wraps.
>
> No, you don't have to put a hard return in the actual text... the
> formattedText property of a field returns the data to your code AS IF
> it had hard returns where it wrapped. Sorry I wasn't being clear... So
> to find out what is the last char on the first line of a field with
> wrapped text before the line wraps you'd do:
>
>   put char -1 of (line 1 of the formattedText of fld 1)
>
> HTH,
>
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list