Timer on Statusbar
-
Hallo, i need to display a timer in the statusbar to show how much time the application need to do a task, if the application is Idle the time shown in the statusbar is 00:00:00(i alreday have this done) but if the applicatioon is busy the timer should display the time has benn requierd. How can i do this and in which files of my SDI-Application please.
-
Hallo, i need to display a timer in the statusbar to show how much time the application need to do a task, if the application is Idle the time shown in the statusbar is 00:00:00(i alreday have this done) but if the applicatioon is busy the timer should display the time has benn requierd. How can i do this and in which files of my SDI-Application please.
Start a timer (have it fire every 1000 ms) when your application starts the task (Should be done on a separate thread if it is lengthy. Because timer messages won't pile up). Use thread synchronization to know when the thread exits and kill your timer there. The timer event handler must have the code to display the time taken.
It is a crappy thing, but it's life -^ Carlo Pallini
-
Hallo, i need to display a timer in the statusbar to show how much time the application need to do a task, if the application is Idle the time shown in the statusbar is 00:00:00(i alreday have this done) but if the applicatioon is busy the timer should display the time has benn requierd. How can i do this and in which files of my SDI-Application please.
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons