In 4.8.1 and 5.0 nightly builds you can use the tintcolor attribute to
get this behavior.
Regards,
Max Carlson
OpenLaszlo.org
On 7/22/10 9:03 AM, Michael Brady wrote:
Hi All,
I have a button class that uses "fgcolor" to change the color of an
image for enable/disabled states. This works fine in Laszlo 4.1.1, but
not 4.7.3.
Here's my example:
<canvas>
<view name="buttonLabel"
resource="triangle_left_10.png"
bgcolor="red"
fgcolor="blue" />
</canvas>
(The png file is attached. It's a white arrow on a transparent background.)
In Laszlo 4.1.1 swf8, this displays a blue arrow on a red background.
In Laszlo 4.7.3 swf9 and dhtml, this displays a white arrow on a red
background.
Is using 'fgcolor' to change an image color no longer supported? If
so, is there a new way to accomplish this? (I'm thinking I could make
the arrow black and use opacity to "grey it out".)
--Michael