 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Rowman Guest
|
Posted: Fri Feb 09, 2007 3:31 pm Post subject: Form showing elapsed time |
|
|
Hi all,
I'm trying to have a basic progress form showing the elapsed time of
a
quite lengthy process. So that the user wont think the program has
crashed or froze.
I have a process that takes extremely long to execute. What is
causing
the lengthy execution time is the open method of a TQuery object,
since there is alot of data. So it is just that one method. This I
think has eliminated the possibility of using a progress bar to show
the progress. So the only other way I could think of is to show the
elapsed time.
What is the best way to do this? I first tried to use TTimer class
and
then the onTimerEvent method. But then realised that it is message
based and does not work as an interrupt. The timer event then doesnt
execute or preempt the execution of the other process. So how can I
solve this? I tried doing it in another thread as well but this didnt
work. I'm not sure if I'm doing this wrong?
Can anyone guide me in the right direction?
Thanx |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|