Mega Code Archive

 
Categories / Delphi / VCL
 

Reducing flicker on component redraw

Question: Is there any way to reduce component flicker when the component is redrawn Answer: Adding the csOpaque flag to the ControlStyle of the component should eliminate the repainting of the component's background. Example: constructor TMyControl.Create; begin inherited; ControlStyle := ControlStyle + [csOpaque]; end;