Problem with the formattedWidth

Ralph DiMola rdimola at evergreeninfo.net
Tue Nov 20 15:39:59 EST 2012


Peter,

Let the message path clear and try again querying the formattedwidth. I have
gotten different answers for the same data in the same field after letting
the engine settle down.

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net


-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf
Of Peter Haworth
Sent: Tuesday, November 20, 2012 3:35 PM
To: How to use LiveCode
Subject: Re: Problem with the formattedWidth

It's only one line and I've tried it with dontWrap set to true and false
with the same result.

I tried getting the formatted width of line 1 of the field and that does
seem to work reliably. interestingly, it reports a different value than the
formatted width of the field!

Pete
lcSQL Software <http://www.lcsql.com>



On Tue, Nov 20, 2012 at 12:15 PM, J. Landman Gay
<jacque at hyperactivesw.com>wrote:

> On 11/20/12 11:47 AM, Peter Haworth wrote:
>
>>
>> It appears that the formattedwidth doesn't always get updated when a 
>> new value is entered into a field.  I typed something into a field, 
>> then used the message box to get its formatted width.  Then typed a 
>> shorter string of characters into the field, got the formattedwidth 
>> again, and it was the same as for the previous text value in the 
>> field.  I haven't 100% verified yet, but it appears that if the new 
>> string is longer than the previous string, then the formatted width 
>> is reported correctly but if the new string is shorter than the old 
>> string, it is reported incorrectly.
>>
>> This is with LC 5.5.0.  Anyone else seeing this?
>>
>
> Is the field more than one line? If so, it will always report the 
> widest part. Does it change if you get the formattedwidth of the line
itself?
>
> --
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
>
>
> ______________________________**_________________
> 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<http://lists.r
> unrev.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





More information about the use-livecode mailing list