question about foregroundColor setting

Doug Lerner doug at webcrossing.com
Sun Jan 4 05:20:22 EST 2004


On 1/4/04 7:13 PM, "Scott Rossi" <scott at tactilemedia.com> wrote:

> On 1/4/04 1:47 AM, "Doug Lerner" <doug at webcrossing.com> wrote:
> 
>> I have the following statement in my handler:
>> 
>> set the foregroundColor of the last line of field "chatField" to msgColor
>> 
>> If I manually set the variable msgColor beforehand to "#000000" it works
>> fine.
>> 
>> But if I take the value of msgColor from an array element (I think this is
>> what is causing the problem) I get the following error:
>> 
>> Type    Chunk: can't set attributes
>> Object    mainCard
>> Line    set the foregroundColor of the last line of field "chatField" to
>> msgColor
>> Hint     #000000
>> 
>> You can see that the value of msgColor is the same as in my manual test. And
>> I logged it to make sure there were no extra characters in the color string.
>> 
>> Could the mere fact that the value came from an array element be causing the
>> problem? I don't see why...
> 
> Have you tried setting the textColor as opposed to the foregroundColor?
> 
It's the same result. The Transcript Dictionary says that foregroundColor
and textColor are synonyms.

doug
 



More information about the use-livecode mailing list