Software
Java
JavaScript
Delphi
HomeDelphi

Showing The Time Dynamically (Clock)

Click to select the code.  Use Control-C to copy it to your clipboard. Help

Comments

To show the current system time dynamically (that is, a clock), use a Timer and a Label.  The Label Caption should be set empty, initially; and set dimensions manually, with Autosize off.  Set the Timer's Interval to 1000 milliseconds, so it will increment once per second.  Each time the OnTimer event reaches its Interval, it will get the current time with the native Now function, and then rewrite the Label Caption with the current time.

.

Copyright 2001 - 2012 by CodeFoot.com and OECCorp.
The 2012 Evolution™


LegalPrivacyCodeFoot.com is an OEC InterNET Group site.SupportNotices
CodeBrain.com BrainCode.com CodeFoot.com CodeBelly.com CodeLifter.com
PopUpWorks.com Droiddd.com etLux.com OECCorp.com
TrayApps.com DavidSosnowski.com MicroTicker.com