Conditional Gray

I’m looking for a way to set a field to “greyed out” (in a printed report) based on the contents of the field on a per-record basis. I guess conditional text coloring will work but I want to background to change color too…and I know how to do that! I think I just answered my own question but if there’s a super easy way to do this I’d love to hear it !

It seems to be impossible to set the transparency of an image display object in the same way I can set the color… Oh how I yearn for the flash art scrapbook!

Holy wow, i just discovered something cool! If I use an image display object and I command it to display a color using something like this:

“%%”+?(RP=“-1”, “E1FFD6”,RP=“X”,“888888”,“F2D8D8”)

I can control transparency on the fly by using eight character hex codes, with the last two digits are for transparency. So this works:

“%%”+?(RP=“-1”, “E1FFD6”,RP=“X”,“88888880”,“F2D8D8”)

(excuse the smart quotes)

1 Like

It seems to be impossible to set the transparency of an image display object in the same way I can set the color… Oh how I yearn for the flash art scrapbook!

Huh? I don’t remember any transparency feature of the flash art scrapbook.

It’s possible for a PNG image to contain an alpha channel. If it does, the Image Display object will use that information. So you can create a “mask” so that only part of the image is opaque. I think Pixelmator can generate such an image, though I’m not sure because I haven’t done that in years.

If I use an image display object and I command it to display a color using something like this:

Yes, this is documented. You can also display a gradient this way.

I can control transparency on the fly by using eight character hex codes, with the last two digits are for transparency.

I don’t think that is documented, but yes, it does work :slight_smile: