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
>
>
>