Maybe you should change the approach of what you are doing. Not very sure how is the code. but one solution you might have is to include the someLongProcess() inside an independent thread. In that way the main application will be freed to process all the messages received. Hope this helps
Luis -----Mensaje original----- De: [email protected] [mailto:[EMAIL PROTECTED] nombre de [EMAIL PROTECTED] Enviado el: Sunday, February 04, 2007 12:58 PM Para: [email protected] Asunto: Re: [delphi-en] Progress indicator / threaded timer ? Hi Gilles, you will have to call Application.ProcessMessages from time to time within your SomeLongProcess. Then your form will be updated. Have fun Bob > Hi, > > I would like to make some feedback to the user of my program during > some long process. To simplify, it could be something like: > > ProgressIndicator.Enabled := True; > SomeLongProcess; > ProgressIndicator.Enabled := False; > > Precising that: > > - I have no access inside SomeLongProcess (external lib) > - ProgressIndicator should update some TImage in the main form > periodically during SomeLongProcess > > I have been playing with timers, threaded timers, threads but > something is always missing. For instance, the indicator can correctly > launch its OnTimer (verified by tracing in a text file) but the form > is not updated. And if I had a synchronize inside the OnTimer, it is > launched only after the end of SomeLongProcess. > > Any help welcome, especially if you know the good component to do that. > > Thanks > Gilles > > > > ----------------------------------------------------- > Home page: http://groups.yahoo.com/group/delphi-en/ > To unsubscribe: [EMAIL PROTECTED] > Yahoo! Groups Links > > > [Non-text portions of this message have been removed]

