Link to home
Start Free TrialLog in
Avatar of amielDorel
amielDorel

asked on

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

How to reduce flickering while updating Font or images in Delphi.
Avatar of Scay7
Scay7
Flag of South Africa image

You can try in your form1.create

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

That might work :P
Avatar of PoliXen
PoliXen

Form1.DoubleBuffered := True;
Form1.ControlStyle   := Form1.ControlStyle + [ csOpaque ];
you can try

yourForm.invalidate;

or

yourComponent.invalidate;
ASKER CERTIFIED SOLUTION
Avatar of PoliXen
PoliXen

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
if you read at the delphi documentation, invalidate is used to fully repaint form/component without flickering.
I use it all the time
Im no expert but im sure that this answer belongs to [ ioannisa ]