set the textStyle["box"] of word x of line y to true is very fast

Richmond richmondmathewson at gmail.com
Wed Feb 19 16:07:42 EST 2014


On 19/02/14 23:04, BNig wrote:
> Hi all,
>
> I stumbled across a dictionary remark regarding setting textStyle
>
> --------------------------------------
> As of version 5.0.2 a new array variant of the textStyle property has been
> added allowing for access to individual textStyles independently from the
> others by specifying the required style as an array key.
>
> 	the textStyle[<style>]
>
> Here, style can be one of bold, condensed, expanded, italic, oblique, box,
> threedbox, underline, strikeout, link. For example
> 	
> 	set the textStyle["bold"] of field 1 to true
> --------------------------------------
>
> I tried it and it turned out to be a lot faster than
>
> set the textStyle of word x of line y of field z to "box"
>
> Since I have not seen anyone mentioning this form I thought I might share
> it.
>
> Anyone in for a speed test will love the difference, especially if you set
> textStyles of many occurences in a long document. What used to be slow and
> tedious and best avoided is now fast.
>
> Kind regards
> Bernd
>

That's something well worth knowing.

Richmond.
>
> --
> View this message in context: http://runtime-revolution.278305.n4.nabble.com/set-the-textStyle-box-of-word-x-of-line-y-to-true-is-very-fast-tp4676113.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list