Can't set font color of htmltext in a list field
Ken Ray
kray at sonsothunder.com
Fri Apr 8 12:09:02 EDT 2005
On 4/8/05 8:20 AM, "Ana Nelson" <ananelson at mac.com> wrote:
> I have text such as the following which I put into the htmltext of a
> list field:
>
> <p><b>Mary Bloggs</b></p>
> <p>Joe Bloggs></p>
>
> This works fine, but I can't seem to change the color of the text.
>
> I have tried:
>
> <p><font color="#FF0000">John Doe</font></p>
>
> and several variations, none of which seem to produce any result.
That's odd, since I tested it and it worked for me. Here's what I did (see
if you can replicate it):
I placed a list field and a button on a new stack, and then set the script
of the button to:
on mouseUp
put "<p><font color=" & quote & "#FF0000" & quote & \
">John Doe</font></p>" into tHTML
set the htmlText of fld 1 to tHTML
end mouseUp
And clicked the button, and it worked. Can you try this at your end?
Thanks,
Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the use-livecode
mailing list