Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
  • entries
    131
  • comments
    16
  • views
    44,899

FileMaker Pro 13 Tip-n-Trick – Let’s free-base64 on a Status Progress Bar!


<p>&nbsp;</p>

<h2>Hey man, Free-base64 is cool with this FileMaker Pro 13 Tip-n-Trick of Creating a Progress Status Bar</h2>

<p>&nbsp;<br />Or for those who are true nerdy geeks -</p>

<h2>All your base64 are belong to us, But We’ll Share this FileMaker Pro 13 Tip-n-Trick of Creating a Progress Status Bar</h2>

<p>&nbsp;</p>

<h3><em><b>Andy Persons shares his first </b><b>FileMaker Pro 13 Tip-n-Trick that demonstrates ProgressBar(),</b> a custom function that provides a simple and lightweight progress status bar.</em></h3>

<p>&nbsp;</p>

<h3>What Got Me Thinking</h3>

<p>When I saw the Base64Decode function in the newly released FileMaker 13, my first thought was “why, you could theoretically calculate any image you want!” My second thought was: “would the complexity be worth it?” So, I decided to start with something simple: a 1 by 100-pixel graphic to display a progress bar. First, I tried creating .png images of various sizes, encoding them using Base64Encode() and comparing what changed. No go. I couldn’t discern any consistent patterns.</p>

<p>Next, I tried the same process using .bmp files. Better, but the patterns were still inconsistent.</p>

<p>Finally, I decided I needed to rethink my approach. I researched base 64 a bit more and realized that the patterns weren’t consistent because it concatenates all bits from the original and encodes them in 6-bit chunks. The best approach would be to build the bitmap from the ground up, if feasible.</p>

<p>So, I looked up the .bmp format on Wikipedia, built a basic bitmap file in hex, converted it to base 64 and created a custom function that replaces the color pixel placeholders with the specified colors! Easy as pie!</p>

<p>I hope you find the accompanying demo file useful. Merry Christmas!</p>

<h3><b>How It Works</b></h3>

<p>This technique makes use of FileMaker Pro 13′s new Base64Decode() function to convert text into an image. The ProgressBar() custom function includes a pre-built 1 x 100-pixel bmp base image and inserts the foreground or background pixels based on the “progress” parameter.</p>

<p>The resulting container is then set to enlarge or reduce without maintaining proportions and the padding is set to zero to ensure the graphic fills it completely.</p>

<p><b>Download The Demo and Get Addicted Today!</b></p>

<p>&nbsp;</p>

<div id="attachment_1075" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.excelisys.com/blog/wp-content/uploads/2013/12/Progress-Bar.fmp12.zip"><img class="size-medium wp-image-1075 " title="FileMaker Pro 13 Tip-n-Trick Progress Bar Demo File" alt="FileMaker Pro 13 Tip-n-Trick Progress Bar" src="http://www.excelisys.com/blog/wp-content/uploads/2013/12/Screen-Shot-2013-12-13-at-10.02.41-AM-300x212.png" width="300" height="212" /></a><p class="wp-caption-text">How-to FileMaker Pro 13 Demo File</p></div>

<p><em><strong>About <a title="Link: http://www.excelisys.com/our-team-custom-database-consultants.php" href="http://www.excelisys.com/our-team-custom-database-consultants.php">Andy Persons</a>:</strong> Andy is a Senior Lead FileMaker Pro Developer with <a href="http://www.excelisys.com/">Excelisys</a>: 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 <a href="http://www.excelisys.com/ex-files-filemaker-solutions.php">eX-BizTracker &amp; eX-BizTracker Pro</a> jump-start solutions, he has shared his incredible and advanced talents by authoring numerous <a href="http://www.excelisys.com/filemaker-tips-tricks-demos-downloads.php">Tips-n-Tricks files</a> and white papers, including Hierarchical Portals, Recursive Calcs, Audit Logs and Drag-and-Drop using <a title="Link: http://www.filemaker.com/products/filemaker-pro/" href="http://www.filemaker.com/products/filemaker-pro/">FileMaker Pro</a>.</em></p>

<p><em>*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 &amp; development services.</em></p>

<p><em> <b>About Excelisys, Inc.: </b>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.</em></p>

<p>&nbsp;</p>

<p><em><a title="Link: http://www.filemaker.com" href="http://www.filemaker.com/">* FileMaker and FileMaker Pro are registered trademarks and owned by FileMaker, Inc. in the US and other countries.</a></em></p>

<a href="http://www.excelisys.com/blog/2013/12/17/filemaker-pro-13-tip-n-trick-lets-free-base64-status-progress-bar/" class='bbc_url' rel='nofollow external'>Source</a>

0 Comments


Recommended Comments

There are no comments to display.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.