Locking for an idea to ....

Andre Garzia andre at andregarzia.com
Mon Feb 22 09:37:19 CST 2010


What I'd try would be to use the formattedWidth to check if my text field
was too small, if it was, then, I would lower the text size and check again,
rinse and repeat till it fits!

:D

On Mon, Feb 22, 2010 at 12:23 PM, Andre.Bisseret <Andre.Bisseret at inria.fr>wrote:

> Bonjour,
>
> You might catch a glance at a post from Jacque where she shows how to do
> the reverse (increase the text of a field when it is difficult to read)
>
> http://mail.runrev.com/pipermail/use-revolution/2010-January/132572.html
> might try the reverse
>
> Another one, I used in an app. where certain lines of a field where to long
> to be read entirely :
> The idea is that on mouseDown on a line the tooltip appears showing the
> entire line.
> (with a trick to keep the toolTip visible for a longer time)
>
> In the script of the field I have :
>
> local tLine
> on mouseDown
>  set the toolTipDelay to 150
>  showToolTip
>  wait 5 seconds with messages
>  set the toolTipDelay to 1
>  showToolTip
> end mouseDown
>
> on showToolTip
>  put word 2 of the mouseLine into tLine
> set the tooltip of me to empty
> set the toolTip of me to line tLine of me
> end voirToolTip
>
> on mouseUp
>  set the toolTip of me to empty
>  set the toolTipDelay to 500
>  exit to top
> end mouseUp
>
> Best regards from Grenoble
>
> André
>
> Le 22 févr. 10 à 12:42, Rolf Kocherhans a écrit :
>
>
>  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.
>>
>> Very clever !
>>
>> My Label field does not have a monospaced font
>> I use (Lucida Grande), I have no clue how to replicating this behavior.
>>
>>
>> Does anybody have an idea how I can do the same with revTalk ?
>>
>>
>> Cheers
>> Rolf
>>
>> _______________________________________________
>> 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
>>
>
>
>
> _______________________________________________
> 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
>



-- 
http://www.andregarzia.com All We Do Is Code.



More information about the use-livecode mailing list