Your application must do some work which blocks the main thread, and your progress indicator does not update until the job is done. Under windows you might have introduced “Application.ProcessMessages()” but this is not cross platform and can cause serious performance problems under FMX. What can you do about it?

 

[ Continue Reading ]

Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder. Design. Code. Compile. Deploy.

Start Free Trial   Free Delphi Community Edition   Free C++Builder Community Edition   Upgrade Today  

Parents
No Data
Comment
  • Drat, the blog cut off my code because it contained a less than sign. Let's try this: procedure TForm23.RunInITask(Sender: TObject); var incTask:ITask; begin ProgressBar1.Value:=0; incTask:=TTask.create(IncrementBar); incTask.Start; incTask.Wait(); while not (ProgressBar1.Value = 100.0) do Sleep(10); end;
Children
No Data