FreeEsVclComponents icon indicating copy to clipboard operation
FreeEsVclComponents copied to clipboard

EsActivityBar does not update while application is busy

Open PeterPanino opened this issue 4 years ago • 0 comments

Tried the \ErrorSoftVCLComponents-4.1.0-11\Samples\ActivityBar example in Alexandria. Works well while application is idle but:

procedure TMainForm.ckbActiveClick(Sender: TObject);
begin
  EsActivityBar.Active := TCheckBox(Sender).Checked;

  // EsActivityBar does not update while looping:
  if EsActivityBar.Active then
  begin
     for var i := 1 to 100000 do
       Self.Caption := FormatDateTime('YYMMDDHHSSZZZ', Now);
  end;
end;

Needs threading. Can you implement threading?

PeterPanino avatar Sep 22 '21 09:09 PeterPanino