Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-02

statusbar flickers

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrea Mauri

Hello,

I have an issue with TStausBar, when I update the text in a panel fastly it starts flickering.

To test it, drop a label a button and a statusbar with at least one panel on a form.
Then add this code to ButtonClick.

procedure TForm1.Button1Click(Sender: TObject);
var
   i: integer;
begin
   i:= 0;
   while i < 10000 do
   begin
     Application.ProcessMessages;
     label1.Caption:= Format('Number: %d', [i]);
     statusbar1.Panels[0].Text:= Format('Number: %d', [i]);
     Inc(i);
   end;
end;

Tlabel does not flickers, Tstatusbar flickers.
Tested on windows.

Is it a known issue? Should I create a bug-report?

Best regards,
Andrea Mauri

Reply by email