Majp's Analog Clock (3 Viewers)

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 21:08
Joined
May 7, 2009
Messages
20,523
As I search the forum for a sample form with Analog Clock, I came across many samples.
ashleedawg has some interesting demo in https://www.access-programmers.co.u...form-manipulating-controls-no-activex.294673/, also Markk has one on the said thread also.

ashleedawg, approach is using many line controls that are laid on the form. the same approached used by raheelwaseem2004 (https://www.access-programmers.co.uk/forums/threads/analog-clock.258947/).

markk approach is using number of classes. at first I like the approach. But when I tried to copy the form (with the class on it), I got an error on opening
the new form. I did not look further the code to fix it coz there are many classes connected one after the other.

Then I came across Majp's demo.
I was impressed by it's simplicity (having 2 classes).
You can use a predetermined Center of the clock (on this demo I choose to use the Center coordinate of the Form itself).

there are small changes like I move the Public Enum HandType to the Module from the Class.
aside from that the remainder of the code is left untouched.

I made 4 more forms that has an Image on it (clock face), just to make it more fancy.

This is not my code and only want to share this beautiful Analog clock.
 

Attachments

Users who are viewing this thread

Back
Top Bottom