[DUG] Ttimer wonderings - and who wants a free widget Analogclock?

John Bird johnkbird at paradise.net.nz
Sun Jul 30 20:34:50 NZST 2006


I have done a considerably more refined version of the clock - let me know
if any want the latest source or program.

Changes:

I rewrote most of the erase and draw code to better virtualise it, now the
hands crossing paint cleanly, and no screen refreshes needed, it maintains
an internal state that works out which parts need any repainting at any
second.

Other additions:

Day of week

A small disk at centre of second hand to make it look more like a real
clock.

A small highlight to the edge of the hands, as well as the shadow, to have
them better show against a dark background.

Other possibilities are:
More continuous hand movement (eg 5/10/20x second)/alarms/hour chimes, but I
am pretty happy now.  Got other stuff to do!

John




More information about the Delphi mailing list