reposition single-line text to the left or right?

J. Landman Gay jacque at hyperactivesw.com
Wed Apr 25 23:03:50 EDT 2012


On 4/25/12 9:29 PM, Nicolas Cueto wrote:
>> on rawKeyUp pKey
>>   -- check for eligible field here if you need to, then:
>>   if the formattedHeight of fld x>  the width of fld x then
>>     set the textalign of fld x to "right"
>>   else
>>     set the textalign of fld x to "left"
>>   end if
>> end rawKeyUp
>>
>
> Elegant and simple solution. (But changed "formattedHeight" to
> "formattedWidth").

Oops, sorry. I'm bird-brained tonight. Glad you caught that.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list