Brian Dunning's FileMaker Custom Functions

colors_for_containers ( color_name ; opacity )

set the color of a container field by color name and opacity from 0.1 to 1.0

  Average rating: 4.8 (21 votes) Log in to vote

Thomas Siebert   Thomas Siebert - Show more from this author
http://www.t-seabird.de

Share on Facebook Share on Twitter

  Sample input:
colors_for_containers ( "blue" ; "0.5" )
  Sample output:
returns 1pt color area to the container field with the opacity of 0.5

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Choose the color of a container field by changing the name of the color.
you will get a 1 pt area of color.

you also shall set the opacity = 0.1 to 1.0

choose between folowing colors:
red green blue cyan magenta yellow white black grey purple orange brown

or the german color names:
rot grün gruen blau gelb weis schwarz grau mittelgrau lila braun

In the layout mode you have to set following options for the containerfield within the inspector:
"Reduce or enlarge image to fit"
"Optimize for Images (JPEG, PNG, BMP, etc)"

Make the containerfield transparent ( no fill color ) if you want to use opacity.

 

Comments

Georg Löffler   Georg Löffler, Vienna
Nov 15, 2015
The color grey is not grey ist light blue.
 
Georg Löffler   Georg Löffler, Vienna
Nov 16, 2015
color grey ok =

grey = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNI+Q8AAcoBZIid22EAAAAASUVORK5CYII="
 
Thomas Siebert   Thomas Siebert
Nov 17, 2015
Thanks, I did change the string.
also I use shorter strings for the other colors now.
 
Ann   Ann, New York
May 26, 2016
The minimum version of FileMaker really needs to be mentioned for these functions. I struggled to get this to work under 12 until I finally found through an online search that Base64Decode was introduced in version 13. I thought at first that it was another custom function but, of course, I couldn't find it.
 
Thomas Siebert   Thomas Siebert
May 26, 2016
In FileMaker versions less than 12 you shall use the free BaseElements plugin from goya.com to be able to do base64 encoding/decoding
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: