Full justification for LiveCode fields
Posted: Fri May 23, 2014 5:40 pm
Thanks to Dave Kilroy for sharing the work around and the generosity of Mark Stephens of Simulytics for donating the code back to the LiveCode community, a new function is available to fully justify LiveCode text fields. LiveCode version >= 6.5 is required as it uses the measureText function which was introduced in 6.5. It doesn't work with the LC7 DP releases as the charIndex property seems to be missing - I assume it's down to the unicode changes that are underway. I've been testing on Mac / Linux and Windows - everything looks good so far !...
The code is in the public domain and completely free to use for any purpose
P.S. I'll ask at the jam if the unicode changes will mean losing any properties, etc. (I suspect not). It's not a big deal to alter the code slightly if charIndex did disappear.
Kevin confirmed that no text properties will be dropped in v7, so a bug report has been filed.
The code is in the public domain and completely free to use for any purpose
P.S. I'll ask at the jam if the unicode changes will mean losing any properties, etc. (I suspect not). It's not a big deal to alter the code slightly if charIndex did disappear.
Kevin confirmed that no text properties will be dropped in v7, so a bug report has been filed.