Brian Dunning's FileMaker Custom Functions

ColourFill ( hexOrDecColour )

Place in a button bar to output a large coloured square, rectangle, or circle ( apply corner radius to make a circle ) in the specified colour.

  Be the first to rate this function Log in to vote

Jason Wood   Jason Wood - Show more from this author
Define Database
https://www.definedatabase.com

Share on Facebook Share on Twitter

  Sample input:
ColourFill ( "#FF0000" )
or
ColourFill ( RGB ( 255 ; 0 ; 0 ) )
or
ColourFill ( 16711680 )
  Sample output:
[ The button bar button will be filled red. ]

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

Fills an area up to about 500px tall or wide. If you need larger, you can change the TextSize value in the function from 1000 to whatever you need.

Rounded corners does not work on Windows (coloured rectangle renders on top). Works on Mac and have not tested with WebDirect & FMGo.

 

Comments

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: