OK, one last riff on progress bars! The V2 FileMaker Pro Progress Bar demo file showed how to have the bar change color based on the percentage, such as changing the entire bar from green to yellow to red as the percentage increased. That approach has some good uses (showing how full a container is, for instance), but some people had something else in mind: having the bar incrementally change color as it progressed. In other words, a gradient.
In the course of solving that problem, I created a native FileMaker Pro 13 gradient generator. Enter as many colors and steps as you wish and the file will create a corresponding 100 x 1 pixel gradient image. You can even specify whether it should use an RGB or HSB gradient. The RBG option is probably what most people are used to, while an HSB gradient will traverse the color wheel on its way from one color to the next. The first sample gradient is a good example to demonstrate the difference. The resulting gradient can be used on its own as a native image or generated dynamically.
The progress bar portion is very simple. It takes three parameters: the progress percentage, a background color (in base64) and a 100 x 1 pixel image (also in base64). It then simply reveals the portion of the image as specified by the progress parameter and displays the background color for the remainder.
How cool is that! Enjoy!
About Andy Persons: Andy is a Senior Lead FileMaker Pro Developer with Excelisys: Andy has been an industry leading FileMaker Pro developer creating FileMaker Pro solutions for over 17 years. In addition to being one of the lead developers of three top-rated and most-downloaded FileMaker Pro solutions of all-time; the FileMaker Business Tracker and the Excelisys eX-BizTracker & eX-BizTracker Pro jump-start solutions, he has shared his incredible and advanced talents by authoring numerous Tips-n-Tricks files and white papers, including Hierarchical Portals, Recursive Calcs, Audit Logs and Drag-and-Drop using FileMaker Pro. *This article is provided for free and as-is, use and play at your own risk – but have fun! Excelisys does not not provide free support or assistance with any of the above. If you would like help or assistance, please consider retaining Excelisys’ FileMaker Pro consulting & development services.
About Excelisys, Inc.: Founded in 2001, Excelisys (www.excelisys.com) is a dedicated organization specializing in the designing, developing, customizing, supporting, consulting, migrating, upgrading, tweaking, fixing, and integrating of FileMaker Pro solutions, FileMaker Go solutions, MySQL, PostgreSQL, QuickBooks-FileMaker Pro Integration, Excel and MS Access FileMaker Pro conversions/migrations, iPhone and iPad business solutions, and other various database technologies and frameworks that automate your organization’s data solution needs for use on the web, mobile, and desktop platforms. Contact Excelisys today for a free estimate and consultation about your business software automation needs @ 866-592-9235.