Locking for an idea to ....
bobs at twft.com
Mon Feb 22 16:25:00 CST 2010
Another thing to consider is that the US post office has standard abbreviations for everything, and in fact strongly encourage you to use them. So if you are using Boulevard instead of BLVD, or Street instead of ST, then perhaps you should consider a search and replace function for all the standard abbreviations? Also, you can use the pound sign (#) for apartment, suite, etc, allowing you to further truncate your addresses.
Really, almost all US addresses are designed to fit onto a standard mailing label, if properly formatted. If not, you always have a second or even third line you can use for addressing.
On Feb 22, 2010, at 1:41 PM, Sarah Reichelt wrote:
> On Mon, Feb 22, 2010 at 9:42 PM, Rolf Kocherhans
> <rolf.kocherhans at id.uzh.ch> wrote:
>> Hello all
>> I am looking for an idea to the following problem :-)
>> I have a non focused label text field of a fixed length, I use it
>> to display e.g. email adresses.
>> Sometimes the email address fits into the field, but other
>> times the email address ist to long, so I only see 80% of it.
>> I now noticed that the iPhones address application,
>> automatically reduces the font size to be able to always
>> display the whole address.
> Here is the routine I use:
> -- shrink font until it fits, down to a minimum of 8
> set the textSize of fld tFieldName to 12
> put 12 into tStartSize
> repeat 4 times
> if the formattedWidth of fld tFieldName > the width of
> fld tFieldName then
> subtract 1 from tStartSize
> set the textSize of fld tFieldName to tStartSize
> exit repeat
> end if
> end repeat
> show fld tFieldName
> If the font gets to size 8 and the text is still not all fitting into
> the field, then maybe you need to truncate it.
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode