> 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").

Thank you, Jacque!

--
Nicolas Cueto

_______________________________________________
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

Reply via email to