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 | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode