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 tactic-tgi.com. 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!)

Enjoy!

 

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 ...

Comments in FileMaker Calendar

Highlight Notes and Comments in Your Calendar

Inline Notes in DayBack Calendar The latest DayBack extension adds an icon to your events when there is a comment present that matches your criteria. You can

Closed Through the New Year

SeedCode is closed for our holiday break from December 19th through the end of the year. We’ll have folks available in case of emergencies and

COMPANY

FOLLOW ALONG

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

© 2023 SeedCode, Inc.