Add Icons to DayBack Calendar

Turns out that it’s pretty easy to add colored icons to your events in DayBack calendar–at least on a Mac: you can use these to supplement DayBack’s color-coding or just to draw attention to certain events. This was inspired by some screen shots Tommy Duval sent us from Tommy’s using the Mac character viewer to insert new characters into the event summary.

To get the character viewer to show up on your Mac, go to System Preferences and select “Keyboard”. Towards the bottom of that setting you’ll see a checkbox to “Show Keyboard & Character Viewers in menu bar.” Turning that on will add a control for the character viewer to your Mac’s menu bar at the top of the screen. The character viewer has a full view shown above and a compact version shown below: toggle these using the icon in the upper right of the character viewer.

Going further

You can take this much further using FileMaker’s Char() function to create these icons directly. Here is an example of how the Char() function works. I’ve used the character viewer to paste a character into the input field in the screenshot to the right. The Code() function tells me the character number and then I can use the Char() function to recreate the icon.

This is useful if you want to add some calculated icons to your events. For example, let’s say I wanted to show a heart emoticon whenever the “heart” field in my event was set to “1”. I’d edit the field “DBk_EventSummaryCalc” in my events table (one of the fields you added to your events table when you added DayBack to your solution) and replace this line…

 s = Summary ; // the title of your event

…with this:

s = If ( HeartField = 1 ; Char ( 6503910084 ) & " " ) & Summary ; // the title of your event

Pretty cool. =)

Another approach would be to add an icon palette to your event details layout so that when you click on one of the icons in the header a script inserts that icon into the text you’re typing. In the example below the button on our “do-not-enter” icon runs this one-line script:

Insert Calculated Result [ Char ( 5700355357 ) & " " ]

If you start using this in your solutions please send screenshots as we’d love to see what you’ve come up with. (And thanks, Tommy, for the inspiration!)



Featured Posts

Follow Along

Stay up to date with the latest news & examples from SeedCode

Leave a Reply

Your email address will not be published. Required fields are marked *

Check out some of our other posts ...

FileMaker Summer Camp – Recap

Unconference Sessions If you missed Pause in October, here’s a look at the sessions that attendees hosted. All the sessions are listed in this post

Subscribe to DayBack Updates & Status

Subscribe to DayBack’s latest features and example code at our new site: You’ll find new features and documentation, as well as the status and

DayBack Calendar in Claris Pro

DayBack for FileMaker 19 works great in Claris Pro with no changes required. The older DayBack Classic also works in Claris Pro, but requires a few changes.



Stay up to date with the latest news & examples from SeedCode

© 2023 SeedCode, Inc.