Analog Clock Component

Post here your experiences, comments, suggestions, or bug reports regarding to the DELPHI AREA products. Not-matching topics will be moved or deleted.

Analog Clock Component

by Kambiz » 23/03/09 13:13

I was looking for an Analog Clock component on the net couldn't find something nice. Therefore, I wrote one.

Clocks.png


In other hand, I am not a Graphic Designer. Because of that I used Windows' Sidebar clock images to write the component. I think because of copyright issues we cannot use this component. But some freeware images will solve the problem.

The attachment is a demo of the component.
You do not have the required permissions to view the files attached to this post.
Kambiz

Donate a cup of food for free: Click to Give @ The Hunger Site

Kambiz
Administrator
Administrator
 
Posts: 1733
Joined: 07/03/03 19:10
Location: Tehran, Iran

Re: Analog Clock Component

by w2m » 23/03/09 13:55

The old TurboPower Orpheus Component has a OVCClock component. A Delphi 2009 version is available here: http://www.songbeamer.com/delphi/

Since the company is no longer is in business you might be able to use its clockface bitmaps.
w2m
w2m
Senior Member
Senior Member
 
Posts: 64
Joined: 08/03/03 19:11
Location: New York, USA

Re: Analog Clock Component

by Kambiz » 24/03/09 13:10

I took a look at OVCClock component, but didn't find something useful.

The analog clock needs at least 5 semi-transparent PNG images:

  1. Clock face
  2. Hour hand
  3. Minute hand
  4. Second hand
  5. A pin when second hand is not showing
  6. Optional overlay glass
Kambiz

Donate a cup of food for free: Click to Give @ The Hunger Site

Kambiz
Administrator
Administrator
 
Posts: 1733
Joined: 07/03/03 19:10
Location: Tehran, Iran

Re: Analog Clock Component

by kokkoras » 25/03/09 00:00

In your demo, when you hide the seconds hand, the minutes hand shifts a bit. I guess you round the time but you should better just hide the seconds hand.
Fotis
User avatar
kokkoras
Moderator
Moderator
 
Posts: 310
Joined: 12/03/05 23:19
Location: Thessaloniki, Greece

Re: Analog Clock Component

by Kambiz » 25/03/09 13:21

I thought when somebody hides the second hand, he/she whats the control consumes less CPU time. Because of that when ShowSeconds is False, the control updates every minute instead of every second.
Kambiz

Donate a cup of food for free: Click to Give @ The Hunger Site

Kambiz
Administrator
Administrator
 
Posts: 1733
Joined: 07/03/03 19:10
Location: Tehran, Iran


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 0 guests