Solved

Show Time on statusbar dynamically

Posted on 2004-09-13
2
201 Views
Last Modified: 2010-04-05
Hi,
I want to Show  Time on my statusbar dynamically?
How do you do this work ?

Example "HH:MM:SS"  on taskbar that change with time.

Thanks in advance for your helps

0
Comment
Question by:Imbeginner
2 Comments
 
LVL 12

Accepted Solution

by:
Ivanov_G earned 75 total points
ID: 12044659
Put a TTimer on the form (from System component tab) and on its OnTime ever place this:

StatusBar1.Text := FormatDateTime('hh:mm:ss', Now);
0
 
LVL 22

Expert Comment

by:Ferruccio Accalai
ID: 12044669
use a TTimer with interval 1000
then in ontimer event

StatusBar1.SimpleText :=  FormatDateTime('HH.nn.ss',Now);

or StatusBar1.Panels[1].tEXT := FormatDateTime('HH.nn.ss',Now); if you have more than 1 panel
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Create a path if not exists 7 89
How to convert memory stream to PDF file 6 109
CheckListBox usage 3 71
Multi-layered image in FireMonkey 9 48
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question