Why us?

Analog Clock: First third-party Morfik 2 Custom Control ever

November 14, 2008

Hi Just a quick note to let the Morfik community know: I was able to port the analog clock to Morfik in like 4 hours from not knowing anything about the new way of life to production code. The new custom control architecture is far superior to the previous one, although not for the faint hearted. And some enhancements (like length (e.g. 4px), TColor and TFont properties) would be in order!

I’ll add some more features and then the Clock joins the PMAP control collection!

A more detailed account to come…

Vector Graphics Analog Clock in Morfik

January 22, 2007

Analog ClockI have just finished a new sample Morfik application that contains a lot of interesting stuff including custom controls, browser independent vector graphics, and more. I plan to write a detailed entry about the internal workings in the coming days.

Until then the very short summary:

  • it was surprisingly easy to create the custom control (the clock itself): it took a few hours without knowing anything about the new Adapter architecture in Morfik;
  • there is no single standard for vector graphics on all browsers, or there is (SVG), but Internet Explorer does not support it (instead it does VML) — so I created a rendering engine that sits above these and provides a browser independent way of doing vector graphics (it should work in recent versions of IE, Firefox, Netscape, Safari, Opera, and other Gecko 1.8+ based browsers).

You can take a look at the application here and download the source code in the Morfik Labs.

To Be Continued…