When is a color not a color

Peter Haworth pete at lcsql.com
Tue Jun 11 17:41:22 EDT 2013


On Tue, Jun 11, 2013 at 1:40 PM, BNig <niggemann at uni-wh.de> wrote:

> on mouseUp
>    put 256 into tSoMany
>    repeat with i = 1 to tSoMany
>       put i & tab & tab & "Just Some Colorized Text" & return after tData
>    end repeat
>    delete last char of tData
>    lock screen
>    put tData into field 1
>    repeat with i = 1 to tSoMany
>       set the textColor of line i of field 1 to i
>    end repeat
>    repeat with i = 1 to tSoMany
>       put tab & (the textColor of line i of field 1) after line i of field
> 1
>    end repeat
>
>    unlock screen
> end mouseUp
>

Fascinating!  I guess single numbers get translated into rgb triplets
somehow.  The dictionary has something in it about single numbers being
treated as a valid color by "is a" for compatibility with Hypercard.

Pete
lcSQL Software <http://www.lcsql.com>



More information about the use-livecode mailing list