Brian Dunning's FileMaker Custom Functions

SwissRailwayClock ( size )

Swiss Railway Clock

  Average rating: 5.0 (2 votes) Log in to vote

Benjamin Fehr   Benjamin Fehr - Show more from this author
EfficientBizz GmbH
http://www.efficientbizz.com

Share on Facebook Share on Twitter

  Sample input:
WebViewer with
SwissRailwayClock[200]
  Sample output:
The iconic Swiss Railway Clock in a WebViewer, 200x200px

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

Find a nice description about history and function on Wikipedia:
https://en.wikipedia.org/wiki/Swiss_railway_clock

 

Comments

Emmeuno   Emmeuno
May 20, 2019
Hi, i'm beginning Filemaker user, can you please explain how parse size parameter? Regards
 
Benjamin Fehr   Benjamin Fehr, EfficientBizz GmbH
May 20, 2019
as you see in my sample input
"SwissRailwayClock[200]"

This will size the clock with width AND height of 200 Pixels.

Place a WV on your Layout and paste the cf as above into formula editor to get a 200x200px clock
 
Emmeuno   Emmeuno
May 20, 2019
Hi Benjamin, thanks for answering. Can i change the WV in transparent background and alignment?
 
Emmeuno   Emmeuno
May 20, 2019
Hi Benjamin, thanks for answering. Can i change the WV in transparent background and alignment?
 
Benjamin Fehr   Benjamin Fehr, EfficientBizz GmbH
May 20, 2019
No. This is html which wouldn't support transparent background at all. You should also know that a WV in FM is always predominant. Layering WV over other objects won't wrk. A WV stays always on top of all.
If you want your SwissClock to adjust to your layouts background color, you have to get into the cf and change its dedicated attribute. There should be a attribute "Background color" somewhere in the JavaScript.
At the end, you'll find the Tag with attributes for 'align' and 'padding'.
 
Jason Maskell   Jason Maskell
May 20, 2019
Very nice
 
Benjamin Fehr   Benjamin Fehr, EfficientBizz GmbH
May 21, 2019
When one developer challenges another: Otmar Kramis did some refinement with a JS by Roland Ritz https://github.com/RolandR.
The clock will auto resize according to the size of the WV. No size-parameter needed. Also the bouncing Minute digit at every full minute makes you believe your standing at the gate of Zurich Central Station.

SwissRailwayClockDyn
https://www.briandunning.com/cf/2243

Don't miss other great contributions by Otmar such as the 'Resource-Calendar'.
https://community.filemaker.com/s/profile/0050H00000Bq8cVQAR
 
Benjamin Fehr   Benjamin Fehr, EfficientBizz GmbH
May 21, 2019
check a dynamic version refined by Otmar Kramis:
SwissRailwayClockDyn
https://www.briandunning.com/cf/2243
 
Fabrice Ricker   Fabrice Ricker, Kultur und Computer
May 21, 2019
I really luv thisclock too!

And it reminds me on my student years in Zürich :-)
 

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: