How to reduce flickering while updating Font or images in Delphi.

How to reduce flickering while updating Font or images in Delphi.
amielDorelAsked:
Who is Participating?
 
PoliXenConnect With a Mentor Commented:
invalidate, will force the form or component to repaint. I don't know if it will stop flickering.
0
 
Scay7Commented:
You can try in your form1.create

procedure TForm1.FormCreate(Sender: TObject);
begin
form1.DoubleBuffered := true;
end;

That might work :P
0
 
PoliXenCommented:
Form1.DoubleBuffered := True;
Form1.ControlStyle   := Form1.ControlStyle + [ csOpaque ];
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Ioannis AnifantakisSoftware EngineerCommented:
you can try

yourForm.invalidate;

or

yourComponent.invalidate;
0
 
Ioannis AnifantakisSoftware EngineerCommented:
if you read at the delphi documentation, invalidate is used to fully repaint form/component without flickering.
I use it all the time
0
 
Scay7Commented:
Im no expert but im sure that this answer belongs to [ ioannisa ]
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.